Changeset 44701 for trunk/tests/phpunit/includes/abstract-testcase.php
- Timestamp:
- 01/28/2019 02:10:24 PM (6 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/abstract-testcase.php
r44700 r44701 13 13 * All WordPress unit tests should inherit from this class. 14 14 */ 15 class WP_UnitTestCase extends PHPUnit_Framework_TestCase {15 abstract class WP_UnitTestCase_Base extends PHPUnit_Framework_TestCase { 16 16 17 17 protected static $forced_tickets = array(); … … 275 275 * Saves the action and filter-related globals so they can be restored later. 276 276 * 277 * Stores $wp_actions, $wp_current_filter, and $wp_filter 278 * on a class variableso they can be restored on tearDown() using _restore_hooks().277 * Stores $wp_actions, $wp_current_filter, and $wp_filter on a class variable 278 * so they can be restored on tearDown() using _restore_hooks(). 279 279 * 280 280 * @global array $wp_actions … … 583 583 $this->assertNotEmpty( $sub_array ); 584 584 } 585 }586 587 /**588 * Asserts that a condition is not false.589 *590 * This method has been backported from a more recent PHPUnit version, as tests running on PHP 5.2 use591 * PHPUnit 3.6.x.592 *593 * @since 4.7.4594 *595 * @param bool $condition Condition to check.596 * @param string $message Optional. Message to display when the assertion fails.597 *598 * @throws PHPUnit_Framework_AssertionFailedError599 */600 public static function assertNotFalse( $condition, $message = '' ) {601 self::assertThat( $condition, self::logicalNot( self::isFalse() ), $message );602 585 } 603 586
Note: See TracChangeset
for help on using the changeset viewer.