Changeset 51572
- Timestamp:
- 08/07/2021 11:00:52 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/abstract-testcase.php
r51568 r51572 473 473 */ 474 474 public function expectDeprecated() { 475 $annotations = $this->getAnnotations(); 475 if ( method_exists( $this, 'getAnnotations' ) ) { 476 // PHPUnit < 9.5.0. 477 $annotations = $this->getAnnotations(); 478 } else { 479 // PHPUnit >= 9.5.0. 480 $annotations = \PHPUnit\Util\Test::parseTestMethodAnnotations( 481 static::class, 482 $this->getName( false ) 483 ); 484 } 485 476 486 foreach ( array( 'class', 'method' ) as $depth ) { 477 487 if ( ! empty( $annotations[ $depth ]['expectedDeprecated'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.