Skip to content

Commit 0061101

Browse files
committed
Add fix for PHPUnit running on PHP 5.5
1 parent 31a4131 commit 0061101

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Tests/bootstrap.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
function loader($class)
44
{
5+
// Support for pre-PHP 5.6 versions
6+
if ($class === 'PHPUnit\Framework\TestCase') {
7+
class_alias('PHPUnit_Framework_TestCase', '\PHPUnit\Framework\TestCase');
8+
9+
return;
10+
}
511
$file = $class . '.php';
612
if (file_exists($file)) {
713
require $file;

0 commit comments

Comments
 (0)