merge upstream phpxmlrpc
[plcapi.git] / php / phpxmlrpc / tests / PolyfillTestCase.php
1 <?php
2
3 use PHPUnit\Runner\Version as PHPUnit_Version;
4
5 if ( class_exists( 'PHPUnit_Extensions_SeleniumCommon_RemoteCoverage' ) === true
6     && class_exists( 'PHPUnit\Extensions\SeleniumCommon\RemoteCoverage' ) === false
7 ) {
8     class_alias( 'PHPUnit_Extensions_SeleniumCommon_RemoteCoverage', 'PHPUnit\Extensions\SeleniumCommon\RemoteCoverage' );
9 }
10
11 if ( class_exists( 'PHPUnit_Runner_BaseTestRunner' ) === true
12     && class_exists( 'PHPUnit\Runner\BaseTestRunner' ) === false
13 ) {
14     class_alias( 'PHPUnit_Runner_BaseTestRunner', 'PHPUnit\Runner\BaseTestRunner' );
15 }
16
17 if (class_exists(PHPUnit_Version::class) === false || version_compare(PHPUnit_Version::id(), '8.0.0', '<')) {
18     include_once __DIR__ . '/PolyfillTestCase7.php';
19 } else {
20     include_once __DIR__ . '/PolyfillTestCase8.php';
21 }