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
F22651883: D2588.id.diff
Fri, Jan 30, 08:41
F22628323: D2588.id6529.diff
Fri, Jan 30, 03:24
F22602970: D2588.diff
Thu, Jan 29, 20:58
Unknown Object (File)
Wed, Jan 28, 00:29
Unknown Object (File)
Mon, Jan 26, 11:04
Unknown Object (File)
Sun, Jan 25, 16:29
Unknown Object (File)
Wed, Jan 21, 05:04
Unknown Object (File)
Tue, Jan 20, 01:17
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