diff --git a/src/TextUI/TestRunner.php b/src/TextUI/TestRunner.php index 17eeca5f3b7..f6719eca86d 100644 --- a/src/TextUI/TestRunner.php +++ b/src/TextUI/TestRunner.php @@ -190,8 +190,6 @@ public function doRun(Test $suite, array $arguments = [], $exit = true) $this->handleConfiguration($arguments); - $this->processSuiteFilters($suite, $arguments); - if (isset($arguments['bootstrap'])) { $GLOBALS['__PHPUNIT_BOOTSTRAP'] = $arguments['bootstrap']; } @@ -540,6 +538,7 @@ public function doRun(Test $suite, array $arguments = [], $exit = true) $result->setTimeoutForLargeTests($arguments['timeoutForLargeTests']); if ($suite instanceof TestSuite) { + $this->processSuiteFilters($suite, $arguments); $suite->setRunTestInSeparateProcess($arguments['processIsolation']); }