新版文化云后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

20 lines
527 B

<?php
declare(strict_types=1);
namespace tests;
use PHPUnit\Framework\TestCase;
use PHPUnit\Runner\Version;
use function version_compare;
class Base extends TestCase
{
protected function proxyAssertMatchesRegularExpression(string $pattern, string $string, string $message = '')
{
if (version_compare(Version::id(), '9.1', '>=')) {
$this->assertMatchesRegularExpression($pattern, $string, $message);
} else {
$this->assertRegExp($pattern, $string, $message);
}
}
}