Page MenuHomeDevCentral

Port tests to PHP 8.1 and PHPUnit 9.5
ClosedPublic

Authored by dereckson on Mar 12 2022, 14:24.
Tags
None
Referenced Files
F8439533: D2588.id6529.diff
Wed, May 14, 07:34
Unknown Object (File)
Fri, May 9, 12:47
Unknown Object (File)
Fri, May 9, 10:45
Unknown Object (File)
Thu, May 8, 18:02
Unknown Object (File)
Thu, May 8, 07:35
Unknown Object (File)
Thu, May 8, 01:16
Unknown Object (File)
Wed, May 7, 19:28
Unknown Object (File)
Sun, May 4, 20:48
Subscribers
None

Details

Summary

PHPUnit provides now a assertStringContainsString method, while assertContains
is reserved for iterables.

All classes are put in a PSR-4 namespace, declared in composer.json.
PHPUnit will use the Composer autoloader to find them.

To help PHPUnit and phpcs to find code, the code is movd in two directories:

  • utils/ → lib/Infrastructure/ for the Nasqueron\Infrastructure namespace
  • (root) → tests/ for the Nasqueron\Infrastructure\ProductionTests namespace
Test Plan

phpunit with and without Docker access

Diff Detail

Repository
rTESTSPRODENV Test suite for operations: prod-environment-behaves-correctly
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson created this revision.
This revision is now accepted and ready to land.Mar 12 2022, 14:25