File: CompatTestCase.php

package info (click to toggle)
matthiasmullie-minify 1.3.73-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,140 kB
  • sloc: php: 3,198; javascript: 2,083; makefile: 38; xml: 27; sh: 6
file content (22 lines) | stat: -rw-r--r-- 514 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?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);
        }
    }
}