Changeset 34638 for trunk/tests/phpunit/includes/testcase.php
- Timestamp:
- 09/27/2015 09:28:26 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase.php
r32953 r34638 300 300 function assertWPError( $actual, $message = '' ) { 301 301 $this->assertInstanceOf( 'WP_Error', $actual, $message ); 302 } 303 304 function assertNotWPError( $actual, $message = '' ) { 305 if ( is_wp_error( $actual ) && '' === $message ) { 306 $message = $actual->get_error_message(); 307 } 308 $this->assertNotInstanceOf( 'WP_Error', $actual, $message ); 302 309 } 303 310
Note: See TracChangeset
for help on using the changeset viewer.