mirror of
https://github.com/matthiasmullie/minify.git
synced 2025-01-18 05:08:26 +01:00
23 lines
514 B
PHP
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);
|
|
}
|
|
}
|
|
}
|