|
1 | 1 | <?php
|
2 | 2 |
|
3 |
| -use Yoast\PHPUnitPolyfills\Helpers\AssertAttributeHelper; |
4 |
| -use Yoast\PHPUnitPolyfills\Polyfills\AssertClosedResource; |
5 |
| -use Yoast\PHPUnitPolyfills\Polyfills\AssertEqualsSpecializations; |
6 |
| -use Yoast\PHPUnitPolyfills\Polyfills\AssertFileDirectory; |
7 |
| -use Yoast\PHPUnitPolyfills\Polyfills\AssertFileEqualsSpecializations; |
8 |
| -use Yoast\PHPUnitPolyfills\Polyfills\AssertionRenames; |
9 |
| -use Yoast\PHPUnitPolyfills\Polyfills\AssertIsType; |
10 |
| -use Yoast\PHPUnitPolyfills\Polyfills\AssertNumericType; |
11 |
| -use Yoast\PHPUnitPolyfills\Polyfills\AssertObjectEquals; |
12 |
| -use Yoast\PHPUnitPolyfills\Polyfills\AssertStringContains; |
13 |
| -use Yoast\PHPUnitPolyfills\Polyfills\EqualToSpecializations; |
14 |
| -use Yoast\PHPUnitPolyfills\Polyfills\ExpectException; |
15 |
| -use Yoast\PHPUnitPolyfills\Polyfills\ExpectExceptionMessageMatches; |
16 |
| -use Yoast\PHPUnitPolyfills\Polyfills\ExpectExceptionObject; |
17 |
| -use Yoast\PHPUnitPolyfills\Polyfills\ExpectPHPException; |
| 3 | +use Yoast\PHPUnitPolyfills\TestCases\TestCase as Polyfill_TestCase; |
18 | 4 |
|
19 | 5 | /**
|
20 | 6 | * PHPUnit adapter layer.
|
21 | 7 | *
|
22 | 8 | * This class enhances the PHPUnit native `TestCase` with polyfills
|
23 | 9 | * for assertions and expectation methods added between PHPUnit 4.8 - 9.5.
|
24 | 10 | *
|
| 11 | + * Additionally, the Polyfill TestCase offers a workaround for the addition |
| 12 | + * of the `void` return type to PHPUnit fixture methods by providing |
| 13 | + * overloadable snake_case versions of the typical fixture method names and |
| 14 | + * ensuring that PHPUnit handles those correctly. |
| 15 | + * |
25 | 16 | * See {@link https://github.com/Yoast/PHPUnit-Polyfills} for full
|
26 |
| - * documentation on the available polyfills. |
| 17 | + * documentation on the available polyfills and other features. |
27 | 18 | */
|
28 |
| -abstract class PHPUnit_Adapter_TestCase extends PHPUnit\Framework\TestCase { |
29 |
| - |
30 |
| - use AssertAttributeHelper; |
31 |
| - use AssertClosedResource; |
32 |
| - use AssertEqualsSpecializations; |
33 |
| - use AssertFileDirectory; |
34 |
| - use AssertFileEqualsSpecializations; |
35 |
| - use AssertionRenames; |
36 |
| - use AssertIsType; |
37 |
| - use AssertNumericType; |
38 |
| - use AssertObjectEquals; |
39 |
| - use AssertStringContains; |
40 |
| - use EqualToSpecializations; |
41 |
| - use ExpectException; |
42 |
| - use ExpectExceptionMessageMatches; |
43 |
| - use ExpectExceptionObject; |
44 |
| - use ExpectPHPException; |
45 |
| -} |
| 19 | +abstract class PHPUnit_Adapter_TestCase extends Polyfill_TestCase {} |
0 commit comments