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/export/writers.php

    r25002 r26370  
    99class Test_WP_Export_Writers extends WP_UnitTestCase {
    1010    function test_export_returner_returns_all_the_return_values() {
     11        if ( ! class_exists( 'WP_Export_Returner' ) ) {
     12            $this->markTestSkipped( "WP_Export_Returner class doesn't exist" );
     13        }
    1114        $returner = new WP_Export_Returner( $this->get_x_formatter() );
    1215        $this->assertEquals( 'xxx' , $returner->export() );
Note: See TracChangeset for help on using the changeset viewer.