mirror of
https://github.com/pestphp/pest.git
synced 2026-06-05 10:52:14 +02:00
wip
This commit is contained in:
@ -19,6 +19,7 @@ use Pest\Plugins\Tia\Graph;
|
||||
use Pest\Plugins\Tia\JsModuleGraph;
|
||||
use Pest\Plugins\Tia\Recorder;
|
||||
use Pest\Plugins\Tia\ResultCollector;
|
||||
use Pest\Plugins\Tia\SourceScope;
|
||||
use Pest\Plugins\Tia\Storage;
|
||||
use Pest\Plugins\Tia\TableExtractor;
|
||||
use Pest\Plugins\Tia\WatchPatterns;
|
||||
@ -1407,7 +1408,7 @@ final class Tia implements AddsOutput, HandlesArguments, Terminable
|
||||
];
|
||||
|
||||
$projectRoot = TestSuite::getInstance()->rootPath;
|
||||
$testPaths = \Pest\Plugins\Tia\SourceScope::testPaths($projectRoot);
|
||||
$testPaths = SourceScope::testPaths($projectRoot);
|
||||
|
||||
if ($testPaths === []) {
|
||||
return false;
|
||||
|
||||
@ -69,7 +69,7 @@ final readonly class SourceScope
|
||||
}
|
||||
|
||||
/**
|
||||
* @return list<string> Absolute, normalised paths to testsuite directories and files declared in phpunit.xml.
|
||||
* @return list<string> Absolute, normalised paths to testsuite directories and files declared in phpunit.xml.
|
||||
*/
|
||||
public static function testPaths(string $projectRoot): array
|
||||
{
|
||||
|
||||
@ -17,8 +17,8 @@ final readonly class TestPaths
|
||||
{
|
||||
/**
|
||||
* @param list<string> $directories Project-relative directory prefixes (no trailing slash).
|
||||
* @param list<string> $files Project-relative file paths.
|
||||
* @param list<string> $suffixes Filename suffixes (e.g. '.php').
|
||||
* @param list<string> $files Project-relative file paths.
|
||||
* @param list<string> $suffixes Filename suffixes (e.g. '.php').
|
||||
*/
|
||||
public function __construct(
|
||||
private array $directories,
|
||||
|
||||
Reference in New Issue
Block a user