diff --git tests/phpunit/tests/image/intermediate_size.php tests/phpunit/tests/image/intermediate_size.php
index 4458f6a..db80f94 100644
|
|
class Tests_Image_Intermediate_Size extends WP_UnitTestCase { |
98 | 98 | |
99 | 99 | // test for the expected string because the array will by definition |
100 | 100 | // return with the correct height and width attributes |
101 | | $this->assertNotFalse( strpos( $image['file'], '330x220' ) ); |
| 101 | $this->assertTrue( strpos( $image['file'], '330x220' ) > 0 ); |
102 | 102 | |
103 | 103 | // cleanup |
104 | 104 | remove_image_size( 'test-size' ); |
… |
… |
class Tests_Image_Intermediate_Size extends WP_UnitTestCase { |
122 | 122 | |
123 | 123 | // test for the expected string because the array will by definition |
124 | 124 | // return with the correct height and width attributes |
125 | | $this->assertNotFalse( strpos( $image['file'], '330x220' ) ); |
| 125 | $this->assertTrue( strpos( $image['file'], '330x220' ) > 0 ); |
126 | 126 | |
127 | 127 | // cleanup |
128 | 128 | remove_image_size( 'test-size' ); |
… |
… |
class Tests_Image_Intermediate_Size extends WP_UnitTestCase { |
149 | 149 | |
150 | 150 | // you have to test for the string because the image will by definition |
151 | 151 | // return with the correct height and width attributes |
152 | | $this->assertNotFalse( strpos( $image['file'], '450x300' ) ); |
| 152 | $this->assertTrue( strpos( $image['file'], '450x300' ) > 0 ); |
153 | 153 | |
154 | 154 | // cleanup |
155 | 155 | remove_image_size( 'test-size' ); |
… |
… |
class Tests_Image_Intermediate_Size extends WP_UnitTestCase { |
206 | 206 | |
207 | 207 | // test for the expected string because the array will by definition |
208 | 208 | // 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 ); |
210 | 210 | |
211 | 211 | // cleanup |
212 | 212 | remove_image_size( 'test-size' ); |
… |
… |
class Tests_Image_Intermediate_Size extends WP_UnitTestCase { |
237 | 237 | |
238 | 238 | // test for the expected string because the array will by definition |
239 | 239 | // 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 ); |
241 | 241 | |
242 | 242 | // cleanup |
243 | 243 | remove_image_size( 'test-size' ); |