Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only alias the minimum required classes
- Loading branch information
1 parent
3b879dd
commit 8b2b5c3
Showing
2 changed files
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
<?php | ||
|
||
if (!class_exists('PHPUnit\Runner\Version')) { | ||
if (class_exists('PHPUnit_Runner_Version')) { | ||
class_alias('PHPUnit_Framework_Test', 'PHPUnit\Framework\Test'); | ||
class_alias('PHPUnit_Framework_TestResult', 'PHPUnit\Framework\TestResult'); | ||
class_alias('PHPUnit_Framework_TestSuite', 'PHPUnit\Framework\TestSuite'); | ||
class_alias('PHPUnit_Exception', 'PHPUnit\Exception'); | ||
class_alias('PHPUnit_Framework_Error', 'PHPUnit\Framework\Error\Error'); | ||
class_alias('PHPUnit_Framework_Error_Warning', 'PHPUnit\Framework\Error\Warning'); | ||
class_alias('PHPUnit_Framework_Constraint', 'PHPUnit\Framework\Constraint\Constraint'); | ||
class_alias('PHPUnit_Framework_ExpectationFailedException', 'PHPUnit\Framework\ExpectationFailedException'); | ||
class_alias('PHPUnit_Framework_AssertionFailedError', 'PHPUnit\Framework\AssertionFailedError'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters