str_replace('\\', '/', $entry['path']), $manifest ); sort($manifestPaths); $testsRoot = app_path('tests'); $iterator = new RecursiveIteratorIterator( new RecursiveDirectoryIterator($testsRoot, FilesystemIterator::SKIP_DOTS) ); $actual = []; foreach ($iterator as $file) { if (!$file instanceof SplFileInfo || !$file->isFile()) { continue; } if (!str_ends_with($file->getFilename(), 'Test.php')) { continue; } $relative = str_replace('\\', '/', substr($file->getPathname(), strlen(app_path()) + 1)); if (preg_match('#^tests/(Unit|Integration|Api|Legacy)/#', $relative) === 1) { continue; } $actual[] = $relative; } sort($actual); expect($actual)->toBe($manifestPaths); });