diff --git a/composer.json b/composer.json index 6d953376..63b91dab 100644 --- a/composer.json +++ b/composer.json @@ -18,20 +18,20 @@ ], "require": { "php": "^8.4", - "brianium/paratest": "^7.25.0", + "brianium/paratest": "^7.26.0", "nunomaduro/collision": "^8.9.5", "nunomaduro/termwind": "^2.4.0", "pestphp/pest-plugin": "^5.0.0", "pestphp/pest-plugin-arch": "^5.0.0", "pestphp/pest-plugin-mutate": "^5.0.2", "pestphp/pest-plugin-profanity": "^5.0.0", - "phpunit/phpunit": "^13.3.6", + "phpunit/phpunit": "^13.4.1", "symfony/process": "^8.1.7" }, "conflict": { "filp/whoops": "<2.18.3", "laravel/boost": "<2.6.0", - "phpunit/phpunit": ">13.3.6", + "phpunit/phpunit": ">13.4.1", "sebastian/exporter": "<7.0.0", "webmozart/assert": "<1.11.0" }, @@ -61,9 +61,9 @@ }, "require-dev": { "pestphp/pest-dev-tools": "^5.0.0", - "pestphp/pest-plugin-browser": "^5.1.0", - "pestphp/pest-plugin-phpstan": "^5.2.1", - "pestphp/pest-plugin-rector": "^5.0.4", + "pestphp/pest-plugin-browser": "^5.1.2", + "pestphp/pest-plugin-phpstan": "^5.2.2", + "pestphp/pest-plugin-rector": "^5.0.5", "pestphp/pest-plugin-type-coverage": "^5.0.2", "psy/psysh": "^0.12.24" }, diff --git a/overrides/Runner/TestSuiteSorter.php b/overrides/Runner/TestSuiteSorter.php index d91569c0..d46bee8e 100644 --- a/overrides/Runner/TestSuiteSorter.php +++ b/overrides/Runner/TestSuiteSorter.php @@ -13,26 +13,14 @@ declare(strict_types=1); namespace PHPUnit\Runner; -use PHPUnit\Framework\DataProviderTestSuite; use PHPUnit\Framework\IterativeTestSuite; -use PHPUnit\Framework\Reorderable; use PHPUnit\Framework\Test; use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestSuite; +use PHPUnit\Runner\ExecutionOrder\Context; +use PHPUnit\Runner\ExecutionOrder\ReorderPipeline; use PHPUnit\Runner\TestRunHistory\NullTestRunHistory; use PHPUnit\Runner\TestRunHistory\TestRunHistory; -use PHPUnit\Runner\TestRunHistory\TestRunHistoryId; - -use function array_diff; -use function array_merge; -use function array_reverse; -use function array_splice; -use function assert; -use function count; -use function in_array; -use function max; -use function shuffle; -use function usort; /** * @internal This class is not covered by the backward compatibility promise for PHPUnit @@ -55,20 +43,9 @@ final class TestSuiteSorter public const int ORDER_SIZE_DESCENDING = 7; - /** - * @var non-empty-array - */ - private const array SIZE_SORT_WEIGHT = [ - 'small' => 1, - 'medium' => 2, - 'large' => 3, - 'unknown' => 4, - ]; + public const int ORDER_MODIFIED_ASCENDING = 8; - /** - * @var array Associative array of (string => DEFECT_SORT_WEIGHT) elements - */ - private array $defectSortOrder = []; + public const int ORDER_MODIFIED_DESCENDING = 9; private readonly TestRunHistory $testRunHistory; @@ -77,292 +54,41 @@ final class TestSuiteSorter $this->testRunHistory = $testRunHistory ?? new NullTestRunHistory; } - /** - * @throws Exception - */ - public function reorderTestsInSuite(Test $suite, int $order, bool $resolveDependencies, int $orderDefects): void + public function apply(Test $suite, ReorderPipeline $pipeline): void { - $allowedOrders = [ - self::ORDER_DEFAULT, - self::ORDER_REVERSED, - self::ORDER_RANDOMIZED, - self::ORDER_DURATION_ASCENDING, - self::ORDER_SIZE_ASCENDING, - self::ORDER_DURATION_DESCENDING, - self::ORDER_SIZE_DESCENDING, - ]; - - if (! in_array($order, $allowedOrders, true)) { - // @codeCoverageIgnoreStart - throw new InvalidOrderException; - // @codeCoverageIgnoreEnd + if ($pipeline->describe() === ['resolve-dependencies'] && ! $this->anyTestHasDependencies([$suite])) { + return; } - $allowedOrderDefects = [ - self::ORDER_DEFAULT, - self::ORDER_DEFECTS_FIRST, - ]; - - if (! in_array($orderDefects, $allowedOrderDefects, true)) { - // @codeCoverageIgnoreStart - throw new InvalidOrderException; - // @codeCoverageIgnoreEnd - } + $this->applyRecursively($suite, $pipeline); + } + private function applyRecursively(Test $suite, ReorderPipeline $pipeline): void + { if ($suite instanceof IterativeTestSuite) { return; } - if ($suite instanceof TestSuite) { - foreach ($suite as $_suite) { - $this->reorderTestsInSuite($_suite, $order, $resolveDependencies, $orderDefects); - } + if (! $suite instanceof TestSuite) { + return; + } - if ($orderDefects === self::ORDER_DEFECTS_FIRST) { - $this->addSuiteToDefectSortOrder($suite); - } - - $this->sort($suite, $order, $resolveDependencies, $orderDefects); + foreach ($suite as $child) { + $this->applyRecursively($child, $pipeline); } - } - private function sort(TestSuite $suite, int $order, bool $resolveDependencies, int $orderDefects): void - { $tests = $suite->tests(); if ($tests === []) { return; } - if ($order === self::ORDER_REVERSED) { - $tests = $this->reverse($tests); - } elseif ($order === self::ORDER_RANDOMIZED) { - $tests = $this->randomize($tests); - } elseif ($order === self::ORDER_DURATION_ASCENDING) { - $tests = $this->sortByDuration($tests); - } elseif ($order === self::ORDER_DURATION_DESCENDING) { - $tests = $this->sortByDurationDescending($tests); - } elseif ($order === self::ORDER_SIZE_ASCENDING) { - $tests = $this->sortBySize($tests); - } elseif ($order === self::ORDER_SIZE_DESCENDING) { - $tests = $this->sortBySizeDescending($tests); - } - - if ($orderDefects === self::ORDER_DEFECTS_FIRST) { - $tests = $this->sortDefectsFirst($tests); - } - - if ($resolveDependencies && ! ($suite instanceof DataProviderTestSuite)) { - /** @noinspection PhpParamsInspection */ - /** @phpstan-ignore argument.type */ - $tests = $this->resolveDependencies($tests); - } - - $suite->setTests($tests); - } - - private function addSuiteToDefectSortOrder(TestSuite $suite): void - { - $max = 0; - - foreach ($suite->tests() as $test) { - assert($test instanceof Reorderable); - - $sortId = $test->sortId(); - - if (! isset($this->defectSortOrder[$sortId])) { - $this->defectSortOrder[$sortId] = $this->testRunHistory->status(TestRunHistoryId::fromReorderable($test))->sortWeight(); - } - - $max = max($max, $this->defectSortOrder[$sortId]); - } - - $this->defectSortOrder[$suite->sortId()] = $max; - } - - /** - * @param list $tests - * @return list - */ - private function reverse(array $tests): array - { - return array_reverse($tests); - } - - /** - * @param list $tests - * @return list - */ - private function randomize(array $tests): array - { - shuffle($tests); - - return $tests; - } - - /** - * @param list $tests - * @return list - */ - private function sortDefectsFirst(array $tests): array - { - usort( - $tests, - fn (Test $left, Test $right) => $this->cmpDefectPriorityAndTime($left, $right), + $suite->setTests( + $pipeline->apply( + $tests, + new Context($suite, $this->testRunHistory), + ), ); - - return $tests; - } - - /** - * @param list $tests - * @return list - */ - private function sortByDuration(array $tests): array - { - usort( - $tests, - fn (Test $left, Test $right) => $this->cmpDuration($left, $right), - ); - - return $tests; - } - - /** - * @param list $tests - * @return list - */ - private function sortByDurationDescending(array $tests): array - { - usort( - $tests, - fn (Test $left, Test $right) => $this->cmpDuration($right, $left), - ); - - return $tests; - } - - /** - * @param list $tests - * @return list - */ - private function sortBySize(array $tests): array - { - usort( - $tests, - fn (Test $left, Test $right) => $this->cmpSize($left, $right), - ); - - return $tests; - } - - /** - * @param list $tests - * @return list - */ - private function sortBySizeDescending(array $tests): array - { - usort( - $tests, - fn (Test $left, Test $right) => $this->cmpSize($right, $left), - ); - - return $tests; - } - - private function cmpDefectPriorityAndTime(Test $a, Test $b): int - { - assert($a instanceof Reorderable); - assert($b instanceof Reorderable); - - $priorityA = $this->defectSortOrder[$a->sortId()] ?? 0; - $priorityB = $this->defectSortOrder[$b->sortId()] ?? 0; - - return $priorityB <=> $priorityA; - } - - private function cmpDuration(Test $a, Test $b): int - { - return $this->durationWeight($a) <=> $this->durationWeight($b); - } - - private function durationWeight(Test $test): float - { - if ($test instanceof TestSuite) { - $sum = 0.0; - - foreach ($test->tests() as $inner) { - $sum += $this->durationWeight($inner); - } - - return $sum; - } - - if ($test instanceof Reorderable) { - return $this->testRunHistory->time(TestRunHistoryId::fromReorderable($test)); - } - - return 0.0; - } - - private function cmpSize(Test $a, Test $b): int - { - return $this->sizeWeight($a) <=> $this->sizeWeight($b); - } - - /** - * @return positive-int - */ - private function sizeWeight(Test $test): int - { - if ($test instanceof TestCase || $test instanceof DataProviderTestSuite) { - return self::SIZE_SORT_WEIGHT[$test->size()->asString()]; - } - - if ($test instanceof TestSuite) { - $max = 0; - - foreach ($test->tests() as $inner) { - $weight = $this->sizeWeight($inner); - - if ($weight > $max) { - $max = $weight; - } - } - - if ($max > 0) { - return $max; - } - } - - return self::SIZE_SORT_WEIGHT['unknown']; - } - - /** - * @param list $tests - * @return list - */ - private function resolveDependencies(array $tests): array - { - if (! $this->anyTestHasDependencies($tests)) { - return $tests; - } - - $newTestOrder = []; - $i = 0; - $provided = []; - - while ($tests !== [] && $i < count($tests)) { - if (array_diff($tests[$i]->requires(), $provided) === []) { - $provided = array_merge($provided, $tests[$i]->provides()); - $newTestOrder = array_merge($newTestOrder, array_splice($tests, $i, 1)); - $i = 0; - } else { - $i++; - } - } - - return array_merge($newTestOrder, $tests); } /** diff --git a/overrides/TextUI/TestSuiteFilterProcessor.php b/overrides/TextUI/TestSuiteFilterProcessor.php index c0e6dd70..9c9b618d 100644 --- a/overrides/TextUI/TestSuiteFilterProcessor.php +++ b/overrides/TextUI/TestSuiteFilterProcessor.php @@ -16,6 +16,7 @@ use Pest\Plugins\Only; use Pest\Runner\Filter\EnsureTestCaseIsInitiatedFilter; use PHPUnit\Event; use PHPUnit\Framework\TestSuite; +use PHPUnit\Metadata\Api\Groups; use PHPUnit\Runner\Filter\Factory; use PHPUnit\TextUI\Configuration\Configuration; use PHPUnit\TextUI\Configuration\FilterNotConfiguredException; @@ -27,6 +28,8 @@ use function array_map; */ final readonly class TestSuiteFilterProcessor { + public function __construct(private Event\Emitter $emitter) {} + /** * @throws Event\RuntimeException * @throws FilterNotConfiguredException @@ -70,7 +73,7 @@ final readonly class TestSuiteFilterProcessor if ($configuration->hasTestsCovering()) { $factory->addIncludeGroupFilter( array_map( - static fn (string $name): string => '__phpunit_covers_'.$name, + Groups::virtualGroupForCovers(...), $configuration->testsCovering(), ), ); @@ -79,7 +82,7 @@ final readonly class TestSuiteFilterProcessor if ($configuration->hasTestsUsing()) { $factory->addIncludeGroupFilter( array_map( - static fn (string $name): string => '__phpunit_uses_'.$name, + Groups::virtualGroupForUses(...), $configuration->testsUsing(), ), ); @@ -99,7 +102,7 @@ final readonly class TestSuiteFilterProcessor $suite->injectFilter($factory); - Event\Facade::emitter()->testSuiteFiltered( + $this->emitter->testSuiteFiltered( Event\TestSuite\TestSuiteBuilder::from($suite), ); } diff --git a/src/Concerns/Testable.php b/src/Concerns/Testable.php index fe335b2c..59dd5db4 100644 --- a/src/Concerns/Testable.php +++ b/src/Concerns/Testable.php @@ -346,7 +346,7 @@ trait Testable TestSuite::getInstance()->snapshots->forget(); - Closure::bind(fn (): array => $this->mockObjects = [], $this, TestCase::class)(); + Closure::bind(fn () => $this->mockObjectRegistry->clear(), $this, TestCase::class)(); foreach (array_keys(array_diff_key(get_object_vars($this), $initialProperties)) as $property) { unset($this->{$property}); diff --git a/src/Kernel.php b/src/Kernel.php index 9348cdaf..6f18d1f9 100644 --- a/src/Kernel.php +++ b/src/Kernel.php @@ -29,6 +29,8 @@ use Whoops\Exception\Inspector; */ final class Kernel { + private bool $booted = false; + private bool $terminated = false; /** @@ -81,6 +83,8 @@ final class Kernel CallsBoot::execute(); + $kernel->booted = true; + Container::getInstance()->add(self::class, $kernel); return $kernel; @@ -132,7 +136,9 @@ final class Kernel $preBufferOutput->terminate(); - CallsTerminable::execute(); + if ($this->booted) { + CallsTerminable::execute(); + } } public function shutdown(): void diff --git a/src/Pest.php b/src/Pest.php index 8eb21489..dbeb542e 100644 --- a/src/Pest.php +++ b/src/Pest.php @@ -6,7 +6,7 @@ namespace Pest; function version(): string { - return '5.3.0'; + return '5.3.1'; } function testDirectory(string $file = ''): string diff --git a/src/Plugins/Cache.php b/src/Plugins/Cache.php index 6c22ae59..031d7d6d 100644 --- a/src/Plugins/Cache.php +++ b/src/Plugins/Cache.php @@ -6,6 +6,7 @@ namespace Pest\Plugins; use Pest\Contracts\Plugins\HandlesArguments; use Pest\Plugins\Concerns\HandleArguments; +use PHPUnit\Event\Facade as EventFacade; use PHPUnit\TextUI\CliArguments\Builder as CliConfigurationBuilder; use PHPUnit\TextUI\CliArguments\XmlConfigurationFileFinder; use PHPUnit\TextUI\XmlConfiguration\DefaultConfiguration; @@ -30,12 +31,12 @@ final class Cache implements HandlesArguments { if (! $this->hasArgument('--cache-directory', $arguments)) { - $cliConfiguration = (new CliConfigurationBuilder)->fromParameters([]); + $cliConfiguration = new CliConfigurationBuilder(EventFacade::emitter())->fromParameters([]); $configurationFile = (new XmlConfigurationFileFinder)->find($cliConfiguration); $xmlConfiguration = DefaultConfiguration::create(); if (is_string($configurationFile)) { - $xmlConfiguration = (new Loader)->load($configurationFile); + $xmlConfiguration = new Loader(EventFacade::emitter())->load($configurationFile); } if (! $xmlConfiguration->phpunit()->hasCacheDirectory()) { diff --git a/src/Plugins/Configuration.php b/src/Plugins/Configuration.php index b34a3b0d..4ad4d41a 100644 --- a/src/Plugins/Configuration.php +++ b/src/Plugins/Configuration.php @@ -8,6 +8,7 @@ use DOMDocument; use Pest\Contracts\Plugins\HandlesArguments; use Pest\Contracts\Plugins\Terminable; use Pest\Plugins\Concerns\HandleArguments; +use PHPUnit\Event\Facade as EventFacade; use PHPUnit\TextUI\CliArguments\Builder as CliConfigurationBuilder; use PHPUnit\TextUI\CliArguments\XmlConfigurationFileFinder; @@ -56,7 +57,7 @@ final class Configuration implements HandlesArguments, Terminable private function hasCustomConfigurationFile(): bool { - $cliConfiguration = (new CliConfigurationBuilder)->fromParameters([]); + $cliConfiguration = new CliConfigurationBuilder(EventFacade::emitter())->fromParameters([]); $configurationFile = (new XmlConfigurationFileFinder)->find($cliConfiguration); return is_string($configurationFile); diff --git a/src/Plugins/Help.php b/src/Plugins/Help.php index 9615fa59..842858ee 100644 --- a/src/Plugins/Help.php +++ b/src/Plugins/Help.php @@ -20,13 +20,8 @@ final readonly class Help implements HandlesArguments public function __construct( private OutputInterface $output - ) { - // - } + ) {} - /** - * {@inheritDoc} - */ public function handleArguments(array $arguments): array { if ($this->hasArgument('--help', $arguments)) { @@ -56,8 +51,6 @@ final readonly class Help implements HandlesArguments 'desc' => $description, ] = $option; - assert(is_string($argument)); - if (trim($argument) === '--process-isolation') { continue; } @@ -87,13 +80,12 @@ final readonly class Help implements HandlesArguments } /** - * @return array>> + * @return array> */ private function getContent(): array { $helpReflection = new PHPUnitHelp; - // @phpstan-ignore-next-line $content = (fn (): array => $this->elements())->call($helpReflection); $content['Configuration'] = [...[[ diff --git a/src/Plugins/Parallel/Paratest/WrapperRunner.php b/src/Plugins/Parallel/Paratest/WrapperRunner.php index a200b90d..87d4515f 100644 --- a/src/Plugins/Parallel/Paratest/WrapperRunner.php +++ b/src/Plugins/Parallel/Paratest/WrapperRunner.php @@ -547,7 +547,7 @@ final class WrapperRunner implements RunnerInterface throw MissingResultsException::create($missingCoverageFiles, 'coverage'); } - $coverageManager = new CodeCoverage; + $coverageManager = new CodeCoverage(EventFacade::emitter()); $coverageManager->init( $this->options->configuration, $this->codeCoverageFilterRegistry, diff --git a/src/Plugins/Tia/Recorder.php b/src/Plugins/Tia/Recorder.php index 9093f260..9912b01b 100644 --- a/src/Plugins/Tia/Recorder.php +++ b/src/Plugins/Tia/Recorder.php @@ -357,7 +357,7 @@ final class Recorder $lineKeys = array_keys($lines); $reportsUnexecutedLines = count($covered) < count($lines); - if ($reportsUnexecutedLines && $lineKeys !== [] && count($covered) === 1 && $covered[0] === max($lineKeys)) { + if ($reportsUnexecutedLines && count($covered) === 1 && $covered[0] === max($lineKeys)) { continue; } diff --git a/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap b/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap index 31ee488b..b2480b86 100644 --- a/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap +++ b/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap @@ -1,5 +1,5 @@ - Pest Testing Framework 5.3.0. + Pest Testing Framework 5.3.1. USAGE: pest [options] @@ -35,8 +35,8 @@ --testsuite [name] ......... Only run tests from the specified test suite(s) --exclude-testsuite [name] .. Exclude tests from the specified test suite(s) --list-groups ................................... List available test groups - --group [name] .................. Only run tests from the specified group(s) - --exclude-group [name] ........... Exclude tests from the specified group(s) + --group [name] Only run tests from the specified group(s); use "a+b" for the tests that are in group "a" and in group "b" + --exclude-group [name] Exclude tests from the specified group(s); use "a+b" for the tests that are in group "a" and in group "b" --covers [name] ................. Only run tests that intend to cover [name] --uses [name] ..................... Only run tests that intend to use [name] --requires-php-extension [name] Only run tests that require PHP extension [name] @@ -63,6 +63,7 @@ --disallow-test-output ................. Be strict about output during tests --enforce-time-limit ................. Enforce time limit based on test size --default-time-limit [sec] Timeout in seconds for tests that have no declared size + --timeout [sec] Stop the test run after the specified number of seconds (wall-clock time for the entire run) --do-not-report-useless-tests Do not report tests that do not test anything --stop-on-defect[=[n]] Stop after first (or n-th) error, failure, warning, or risky test --stop-on-error[=[n]] ..................... Stop after first (or n-th) error @@ -102,11 +103,13 @@ --do-not-fail-on-incomplete Do not signal failure using shell exit code when a test was marked incomplete --record-test-run-history .......................... Record test run history --do-not-record-test-run-history ............ Do not record test run history + --cache-test-index .......................... Write test index to cache file + --do-not-cache-test-index ............ Do not write test index to cache file --warn-when-php-is-not-configured-for-development Trigger a test runner warning when PHP is not configured for development --do-not-warn-when-php-is-not-configured-for-development Do not trigger a test runner warning when PHP is not configured for development - --order-by [order] Run tests in order: default|defects|depends|duration-ascending|duration-descending|no-depends|random|reverse|size-ascending|size-descending - --resolve-dependencies ...................... Alias for "--order-by depends" - --ignore-dependencies .................... Alias for "--order-by no-depends" + --order-by [order] Run tests in order: default|defects|duration-ascending|duration-descending|modified-ascending|modified-descending|random|reverse|size-ascending|size-descending + --resolve-dependencies Reorder tests to resolve dependencies between them (default) + --ignore-dependencies Do not reorder tests to resolve dependencies between them --random-order ............................... Alias for "--order-by random" --random-order-seed [N] Use the specified random seed when running tests in random order --repeat [N] .......... Run each test N times, stopping at the first failure @@ -163,6 +166,7 @@ --coverage-html [dir] Write code coverage report in HTML format to directory --without-class-view Render code coverage report in HTML format without class view --without-file-view Render code coverage report in HTML format without file view + --coverage-jsonl [dir] Write code coverage report in JSONL format to directory --coverage-php [file] .......... Write serialized code coverage data to file --coverage-text=[file] Write code coverage report in text format to file [default: standard output] --only-summary-for-coverage-text Option for code coverage report in text format: only show summary diff --git a/tests/.pest/snapshots/Visual/Version/visual_snapshot_of_help_command_output.snap b/tests/.pest/snapshots/Visual/Version/visual_snapshot_of_help_command_output.snap index fa66126d..414bbe82 100644 --- a/tests/.pest/snapshots/Visual/Version/visual_snapshot_of_help_command_output.snap +++ b/tests/.pest/snapshots/Visual/Version/visual_snapshot_of_help_command_output.snap @@ -1,3 +1,3 @@ - Pest Testing Framework 5.3.0. + Pest Testing Framework 5.3.1. diff --git a/tests/.snapshots/success.txt b/tests/.snapshots/success.txt index ce595932..f5ad410d 100644 --- a/tests/.snapshots/success.txt +++ b/tests/.snapshots/success.txt @@ -2210,6 +2210,9 @@ PASS Tests\Visual\Collision ✓ collision with (['']) + PASS Tests\Visual\FailingBoot + ✓ a failure in the boot files renders only that failure + PASS Tests\Visual\Help ✓ visual snapshot of help command output @@ -2256,4 +2259,4 @@ ✓ pass with dataset with ('my-datas-set-value') ✓ within describe → pass with dataset with ('my-datas-set-value') - Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 40 todos, 35 skipped, 1599 passed (3486 assertions) \ No newline at end of file + Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 40 todos, 35 skipped, 1600 passed (3489 assertions) \ No newline at end of file diff --git a/tests/Fixtures/Suites/FailingBoot/Pest.php b/tests/Fixtures/Suites/FailingBoot/Pest.php new file mode 100644 index 00000000..0cf6021d --- /dev/null +++ b/tests/Fixtures/Suites/FailingBoot/Pest.php @@ -0,0 +1,5 @@ + 'DefaultPrinter', 'COLLISION_IGNORE_DURATION' => 'true', 'PAO_DISABLE' => '1']); + + $process->run(); + + expect($process->getExitCode())->toBe(1) + ->and($process->getOutput().$process->getErrorOutput()) + ->toContain('The boot of the test suite failed.') + ->not->toContain('cannot be resolved'); +})->skipOnWindows();