Make WordPress Core


Ignore:
Timestamp:
11/25/2013 10:49:51 PM (11 years ago)
Author:
wonderboymusic
Message:

When setting WP_TESTS_FORCE_KNOWN_BUGS to true, it is preferable that some forced tests are still skipped when they call classes or functions that do not exist, producing fatal errors.

Fixes #26248.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/formatting/MapDeep.php

    r25002 r26370  
    55 */
    66class Tests_Formatting_MapDeep extends WP_UnitTestCase {
     7    function setUp() {
     8        if ( ! function_exists( 'map_deep' ) ) {
     9            $this->markTestSkipped( "map_deep function doesn't exist" );
     10        }
     11
     12        parent::setUp();
     13    }
     14
    715    function test_map_deep_with_any_function_over_empty_array_should_return_empty_array() {
    816        $this->assertEquals( array(), map_deep( array( $this, 'return_baba' ), array() ) );
Note: See TracChangeset for help on using the changeset viewer.