diff --git a/src/Framework/TestSuite.php b/src/Framework/TestSuite.php index d6ff0fec890..d968be992f4 100644 --- a/src/Framework/TestSuite.php +++ b/src/Framework/TestSuite.php @@ -750,7 +750,7 @@ public function run(TestResult $result = null): TestResult foreach ($hookMethods['afterClass'] as $afterClassMethod) { if ($this->testCase === true && \class_exists($this->name, false) && \method_exists( $this->name, - $afterClassMethod + $afterClassMethod )) { \call_user_func([$this->name, $afterClassMethod]); } diff --git a/src/Runner/PhptTestCase.php b/src/Runner/PhptTestCase.php index 800c2a73654..57a58fb4f86 100644 --- a/src/Runner/PhptTestCase.php +++ b/src/Runner/PhptTestCase.php @@ -543,7 +543,7 @@ private function renderForCoverage(string &$job): void if (!empty($GLOBALS['__PHPUNIT_BOOTSTRAP'])) { $globals = '$GLOBALS[\'__PHPUNIT_BOOTSTRAP\'] = ' . \var_export( $GLOBALS['__PHPUNIT_BOOTSTRAP'], - true + true ) . ";\n"; }