Make WordPress Core

Changeset 33846


Ignore:
Timestamp:
09/01/2015 05:03:13 PM (11 years ago)
Author:
wonderboymusic
Message:

After [33807], fix unit tests for PHP 5.2

Fixes #17626.

File:
1 edited

Legend:

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

    r33807 r33846  
    9999                // test for the expected string because the array will by definition
    100100                // return with the correct height and width attributes
    101                 $this->assertNotFalse( strpos( $image['file'], '330x220' ) );
     101                $this->assertTrue( strpos( $image['file'], '330x220' ) > 0 );
    102102
    103103                // cleanup
     
    123123                // test for the expected string because the array will by definition
    124124                // return with the correct height and width attributes
    125                 $this->assertNotFalse( strpos( $image['file'], '330x220' ) );
     125                $this->assertTrue( strpos( $image['file'], '330x220' ) > 0 );
    126126
    127127                // cleanup
     
    150150                // you have to test for the string because the image will by definition
    151151                // return with the correct height and width attributes
    152                 $this->assertNotFalse( strpos( $image['file'], '450x300' ) );
     152                $this->assertTrue( strpos( $image['file'], '450x300' ) > 0 );
    153153
    154154                // cleanup
     
    207207                // test for the expected string because the array will by definition
    208208                // return with the correct height and width attributes
    209                 $this->assertNotFalse( strpos( $image['file'], $image_w . 'x' . $image_h ) );
     209                $this->assertTrue( strpos( $image['file'], $image_w . 'x' . $image_h ) > 0 );
    210210
    211211                // cleanup
     
    238238                // test for the expected string because the array will by definition
    239239                // return with the correct height and width attributes
    240                 $this->assertNotFalse( strpos( $image['file'], $image_w . 'x' . $image_h ) );
     240                $this->assertTrue( strpos( $image['file'], $image_w . 'x' . $image_h ) > 0 );
    241241
    242242                // cleanup
Note: See TracChangeset for help on using the changeset viewer.