Skip to content

Commit

Permalink
Make this compatible with PHPUnit 5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jan 26, 2018
1 parent 63f2fec commit d125b4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Framework/TestSuite.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ public function addTestSuite($testClass)
}
}

if (!$suiteMethod && !$testClass->isAbstract() && $testClass->isSubclassOf(TestCase::class)) {
if (!$suiteMethod && !$testClass->isAbstract() && $testClass->isSubclassOf(PHPUnit_Framework_TestCase::class)) {
$this->addTest(new self($testClass));
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion tests/Regression/GitHub/2972.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ $_SERVER['argv'][1] = '--no-configuration';
$_SERVER['argv'][2] = __DIR__ . '/2972/';

require __DIR__ . '/../../bootstrap.php';
PHPUnit\TextUI\Command::main();
PHPUnit_TextUI_Command::main();
?>
--EXPECTF--
PHPUnit %s by Sebastian Bergmann and contributors.
Expand Down

0 comments on commit d125b4e

Please # to comment.