This commit is contained in:
Luke Downing
2023-02-10 15:58:10 +00:00
committed by Nuno Maduro
parent 504fd04705
commit e1406554fc

View File

@ -17,7 +17,7 @@ use Symfony\Component\Console\Output\OutputInterface;
$bootPest = (static function (): void { $bootPest = (static function (): void {
$argv = new ArgvInput(); $argv = new ArgvInput();
$originalArgv = new ArgvInput(json_decode($_SERVER['PEST_PARALLEL_ARGV'])); $parentProcessArgv = new ArgvInput(json_decode($_SERVER['PEST_PARALLEL_ARGV']));
$rootPath = dirname(PHPUNIT_COMPOSER_INSTALL, 2); $rootPath = dirname(PHPUNIT_COMPOSER_INSTALL, 2);
$testSuite = TestSuite::getInstance( $testSuite = TestSuite::getInstance(
@ -25,7 +25,7 @@ $bootPest = (static function (): void {
$argv->getParameterOption('--test-directory', (new ConfigLoader($rootPath))->getTestsDirectory()), $argv->getParameterOption('--test-directory', (new ConfigLoader($rootPath))->getTestsDirectory()),
); );
if ($originalArgv->hasParameterOption('--todo')) { if ($parentProcessArgv->hasParameterOption('--todo')) {
$testSuite->tests->addTestCaseMethodFilter(new TodoTestCaseFilter()); $testSuite->tests->addTestCaseMethodFilter(new TodoTestCaseFilter());
} }