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 502e8a9 commit 6277050
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

function loader($class)
{
// Support for pre-PHP 5.6 versions
if ($class === 'PHPUnit\Framework\TestCase') {
class_alias('PHPUnit_Framework_TestCase', '\PHPUnit\Framework\TestCase');

return;
}
$file = $class . '.php';
if (file_exists($file)) {
require $file;
Expand Down

0 comments on commit 6277050

Please sign in to comment.