Changeset 40539 for trunk/tests/phpunit/includes/testcase.php
- Timestamp:
- 04/23/2017 11:45:46 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase.php
r40536 r40539 414 414 public function setExpectedIncorrectUsage( $doing_it_wrong ) { 415 415 array_push( $this->expected_doing_it_wrong, $doing_it_wrong ); 416 }417 418 /**419 * PHPUnit 6+ compatibility shim.420 *421 * @param mixed $exception422 * @param string $message423 * @param int|string $code424 */425 public function setExpectedException( $exception, $message = '', $code = null ) {426 if ( is_callable( 'parent::setExpectedException' ) ) {427 parent::setExpectedException( $exception, $message, $code );428 } else {429 $this->expectException( $exception );430 if ( '' !== $message ) {431 $this->expectExceptionMessage( $message );432 }433 if ( null !== $code ) {434 $this->expectExceptionCode( $code );435 }436 }437 416 } 438 417
Note: See TracChangeset
for help on using the changeset viewer.