WordPress.org

Make WordPress Core

Ticket #39219: 39219.diff

File 39219.diff, 752 bytes (added by peterwilsoncc, 4 years ago)
  • tests/phpunit/includes/testcase.php

    diff --git tests/phpunit/includes/testcase.php tests/phpunit/includes/testcase.php
    index 344f9eb..436b488 100644
    class WP_UnitTestCase extends PHPUnit_Framework_TestCase { 
    436436        }
    437437
    438438        /**
     439         * Asserts that a condition is not false.
     440         *
     441         * @param bool   $condition
     442         * @param string $message
     443         *
     444         * @throws PHPUnit_Framework_AssertionFailedError
     445         */
     446        public static function assertNotFalse( $condition, $message = '' ) {
     447                self::assertThat( $condition, self::logicalNot( self::isFalse() ), $message );
     448        }
     449
     450        /**
    439451         * Modify WordPress's query internals as if a given URL has been requested.
    440452         *
    441453         * @param string $url The URL for the request.