minify/tests/CompatTestCase.php
2022-11-16 12:13:00 +01:00

23 lines
514 B
PHP

<?php
namespace MatthiasMullie\Minify\Tests;
use PHPUnit\Framework\TestCase as PHPUnitTestCase;
if (
method_exists('PHPUnit\\Framework\\TestCase', 'expectException') ||
!method_exists('PHPUnit\\Framework\\TestCase', 'setExpectedException')
) {
class CompatTestCase extends PHPUnitTestCase
{
}
} else {
class CompatTestCase extends PHPUnitTestCase
{
public function expectException($exception)
{
parent::setExpectedException($exception);
}
}
}