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
F3768352: D2588.diff
Sat, Nov 23, 07:37
F3767856: D2588.diff
Sat, Nov 23, 03:51
F3767176: D2588.id.diff
Fri, Nov 22, 22:51
Unknown Object (File)
Fri, Nov 22, 06:41
Unknown Object (File)
Sat, Nov 16, 02:36
Unknown Object (File)
Fri, Nov 15, 00:08
Unknown Object (File)
Sun, Nov 10, 04:49
Unknown Object (File)
Fri, Nov 8, 07:24
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