Make WordPress Core


Ignore:
Timestamp:
04/22/2017 10:11:56 PM (8 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Convert more test skipping into hard failures. These dependencies should all be present when testing.

See #40533

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/image/intermediate_size.php

    r38086 r40532  
    3131    function test_make_intermediate_size_width() {
    3232        if ( !function_exists( 'imagejpeg' ) )
    33             $this->markTestSkipped( 'jpeg support unavailable' );
     33            $this->fail( 'jpeg support unavailable' );
    3434
    3535        $image = image_make_intermediate_size( DIR_TESTDATA . '/images/a2-small.jpg', 100, 0, false );
     
    4040    function test_make_intermediate_size_height() {
    4141        if ( !function_exists( 'imagejpeg' ) )
    42             $this->markTestSkipped( 'jpeg support unavailable' );
     42            $this->fail( 'jpeg support unavailable' );
    4343
    4444        $image = image_make_intermediate_size( DIR_TESTDATA . '/images/a2-small.jpg', 0, 75, false );
     
    4949    function test_make_intermediate_size_successful() {
    5050        if ( !function_exists( 'imagejpeg' ) )
    51             $this->markTestSkipped( 'jpeg support unavailable' );
     51            $this->fail( 'jpeg support unavailable' );
    5252
    5353        $image = image_make_intermediate_size( DIR_TESTDATA . '/images/a2-small.jpg', 100, 75, true );
Note: See TracChangeset for help on using the changeset viewer.