Skip to content

Commit

Permalink
Add fix for PHPUnit running on PHP 5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Xethron committed Apr 18, 2018
1 parent 31a4131 commit 952a294
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

function loader($class)
{
// Support for pre-PHP 5.6 versions
if ($class === '\PHPUnit\Framework\TestCase') {
class_alias('PHPUnit_Framework_TestCase', '\PHPUnit\Framework\TestCase');
}
$file = $class . '.php';
if (file_exists($file)) {
require $file;
Expand Down

0 comments on commit 952a294

Please sign in to comment.