mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
wp
This commit is contained in:
@ -44,12 +44,12 @@ final class Only implements Terminable
|
|||||||
*/
|
*/
|
||||||
public static function enable(TestCall $testCall, string $group = '__pest_only'): void
|
public static function enable(TestCall $testCall, string $group = '__pest_only'): void
|
||||||
{
|
{
|
||||||
|
$testCall->group($group);
|
||||||
|
|
||||||
if (Environment::name() === Environment::CI || Parallel::isWorker()) {
|
if (Environment::name() === Environment::CI || Parallel::isWorker()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$testCall->group($group);
|
|
||||||
|
|
||||||
$lockFile = self::TEMPORARY_FOLDER.DIRECTORY_SEPARATOR.'only.lock';
|
$lockFile = self::TEMPORARY_FOLDER.DIRECTORY_SEPARATOR.'only.lock';
|
||||||
|
|
||||||
if (file_exists($lockFile) && $group === '__pest_only') {
|
if (file_exists($lockFile) && $group === '__pest_only') {
|
||||||
|
|||||||
Reference in New Issue
Block a user