Skip to content

Commit c477734

Browse files
committed
try to fix tests with newer versions of PHPUnit
1 parent 23d67d4 commit c477734

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/bootstrap.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212

1313
require __DIR__ . '/..' . '/autoload.php';
1414

15+
if (class_exists('\PHPUnit\Framework\TestCase')) {
16+
class_alias(\PHPUnit\Framework\TestCase::class, 'PHPUnit_Framework_TestCase');
17+
}
18+
1519
/* set up a trace function that will be called for each communication with the server */
1620

1721
function isCluster(Connection $connection)

0 commit comments

Comments
 (0)