3 use PHPUnit\Framework\TestResult;
4 use PHPUnit\Runner\Version as PHPUnit_Version;
5 use Yoast\PHPUnitPolyfills\TestCases\TestCase;
7 if (class_exists('PhpXmlRpc_PolyfillTestCase')) {
11 if (class_exists(PHPUnit_Version::class) === false || version_compare(PHPUnit_Version::id(), '8.0.0', '<')) {
12 abstract class PhpXmlRpc_PolyfillTestCase extends TestCase
14 public function _run($result = null) {
15 return parent::run($result);
18 public static function _fail() {}
20 public function run($result = null) {
21 return $this->_run($result);
24 public static function fail($message = '') {
25 static::_fail($message);
30 abstract class PhpXmlRpc_PolyfillTestCase extends TestCase
32 public function _run(TestResult $result = null) {
33 return parent::run($result);
36 public static function _fail() {}
38 public function run(TestResult $result = null): TestResult {
39 return $this->_run($result);
42 public static function fail(string $message = ''): void {
43 static::_fail($message);
44 parent::fail($message);