group('__pest_only'); $lockFile = self::TEMPORARY_FOLDER.DIRECTORY_SEPARATOR.'only.lock'; if (! file_exists($lockFile)) { touch($lockFile); } } /** * Checks if "only" mode is enabled. */ public static function isEnabled(): bool { $lockFile = self::TEMPORARY_FOLDER.DIRECTORY_SEPARATOR.'only.lock'; return file_exists($lockFile); } }