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
F7798349: D2588.diff
Sat, May 3, 02:01
Unknown Object (File)
Thu, May 1, 02:48
Unknown Object (File)
Mon, Apr 28, 18:36
Unknown Object (File)
Fri, Apr 25, 08:08
Unknown Object (File)
Fri, Apr 25, 07:39
Unknown Object (File)
Thu, Apr 24, 12:17
Unknown Object (File)
Thu, Apr 24, 08:25
Unknown Object (File)
Thu, Apr 24, 05:36
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

Event Timeline

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