Changeset 51567
- Timestamp:
- 08/07/2021 10:20:05 AM (3 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpcs.xml.dist
r51122 r51567 236 236 <property name="custom_test_class_whitelist" type="array"> 237 237 <!-- Test case parent classes. --> 238 <element value="PHPUnit_Adapter_TestCase"/> 238 239 <element value="WP_UnitTestCase"/> 239 240 <element value="WP_Ajax_UnitTestCase"/> … … 268 269 <element value="SpeedTrapListener"/> 269 270 <element value="PHPUnit_Framework_Exception"/> 271 <element value="Polyfill_TestCase"/> 270 272 </property> 271 273 </properties> -
trunk/tests/phpunit/includes/phpunit-adapter-testcase.php
r51561 r51567 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 /** … … 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 {}
Note: See TracChangeset
for help on using the changeset viewer.