1
0
mirror of https://github.com/Ne-Lexa/php-zip.git synced 2025-10-10 04:44:28 +02:00
Files
php-zip/tests/Polyfill/PhpUnit8CompatTrait.php
2021-05-16 12:18:23 +03:00

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);
}
}