mirror of
https://github.com/pestphp/pest.git
synced 2026-04-20 22:20:17 +02:00
fix: shard regex
This commit is contained in:
@ -84,7 +84,7 @@ final class Shard implements HandlesArguments
|
|||||||
'--list-tests',
|
'--list-tests',
|
||||||
]))->mustRun()->getOutput();
|
]))->mustRun()->getOutput();
|
||||||
|
|
||||||
preg_match_all('/ - (?:P\\\)?(.+)::/', $output, $matches);
|
preg_match_all('/ - (?:P\\\\)?(Tests\\\\[^:]+)::/', $output, $matches);
|
||||||
|
|
||||||
return array_values(array_unique($matches[1]));
|
return array_values(array_unique($matches[1]));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user