mirror of
https://github.com/Ne-Lexa/php-zip.git
synced 2025-10-10 04:44:28 +02:00
23 lines
479 B
PHP
23 lines
479 B
PHP
<?php
|
|
|
|
namespace PhpZip\Tests\Polyfill;
|
|
|
|
use PHPUnit\Runner\Version;
|
|
|
|
trait PhpUnit8CompatTrait
|
|
{
|
|
/**
|
|
* @param string $regularExpression
|
|
*/
|
|
public function expectExceptionMessageMatches(string $regularExpression): void
|
|
{
|
|
if (version_compare(Version::id(), '8.0.0', '<')) {
|
|
$this->expectExceptionMessageRegExp($regularExpression);
|
|
|
|
return;
|
|
}
|
|
|
|
parent::expectExceptionMessageMatches($regularExpression);
|
|
}
|
|
}
|