comments
[plcapi.git] / tests / PolyfillTestCase.php
1 <?php
2
3 use PHPUnit\Runner\Version as PHPUnit_Version;
4
5 /// @todo we should do the opposite - write test code to the 'new' phpunit API, and alias it to the 'old' class name
6 ///       when old classes are present...
7 if (!class_exists('PHPUnit_Extensions_SeleniumCommon_RemoteCoverage')) {
8     class PHPUnit_Extensions_SeleniumCommon_RemoteCoverage extends PHPUnit\Extensions\SeleniumCommon\RemoteCoverage {}
9 }
10
11 if (class_exists(PHPUnit_Version::class) === false || version_compare(PHPUnit_Version::id(), '8.0.0', '<')) {
12     include_once __DIR__ . '/PolyfillTestCase7.php';
13 } else {
14     include_once __DIR__ . '/PolyfillTestCase8.php';
15 }