WordPress.org

Make WordPress Core

Changeset 41367


Ignore:
Timestamp:
09/11/2017 12:37:55 AM (3 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Convert more test skipping into hard failures.

See #41851

Location:
trunk/tests/phpunit/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/http/http.php

    r38726 r41367  
    1313     */
    1414    function test_make_absolute_url( $relative_url, $absolute_url, $expected ) {
    15         if ( ! is_callable( array( 'WP_Http', 'make_absolute_url' ) ) ) {
    16             $this->markTestSkipped( "This version of WP_HTTP doesn't support WP_HTTP::make_absolute_url()" );
    17             return;
    18         }
    19 
    2015        $actual = WP_Http::make_absolute_url( $relative_url, $absolute_url );
    2116        $this->assertEquals( $expected, $actual );
  • trunk/tests/phpunit/tests/image/meta.php

    r40544 r41367  
    99    function setUp() {
    1010        if ( ! extension_loaded( 'gd' ) )
    11             $this->markTestSkipped( 'The gd PHP extension is not loaded.' );
     11            $this->fail( 'The gd PHP extension is not loaded.' );
    1212        if ( ! extension_loaded( 'exif' ) )
    13             $this->markTestSkipped( 'The exif PHP extension is not loaded.' );
     13            $this->fail( 'The exif PHP extension is not loaded.' );
     14
    1415        parent::setUp();
    1516    }
Note: See TracChangeset for help on using the changeset viewer.