Changeset 51451 for trunk/tests/phpunit/tests/image/intermediateSize.php
- Timestamp:
- 07/17/2021 10:36:52 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/intermediateSize.php
r51415 r51451 107 107 // Test for the expected string because the array will by definition 108 108 // return with the correct height and width attributes. 109 $this->assert True( strpos( $image['file'], '330x220' ) > 0);109 $this->assertStringContainsString( '330x220', $image['file'] ); 110 110 } 111 111 … … 129 129 // Test for the expected string because the array will by definition 130 130 // return with the correct height and width attributes. 131 $this->assert True( strpos( $image['file'], '330x220' ) > 0);131 $this->assertStringContainsString( '330x220', $image['file'] ); 132 132 } 133 133 … … 152 152 // Test for the expected string because the array will by definition 153 153 // return with the correct height and width attributes. 154 $this->assert True( strpos( $image['file'], '450x300' ) > 0);154 $this->assertStringContainsString( '450x300', $image['file'] ); 155 155 } 156 156 … … 202 202 // Test for the expected string because the array will by definition 203 203 // return with the correct height and width attributes. 204 $this->assert True( strpos( $image['file'], $image_w . 'x' . $image_h ) > 0);204 $this->assertStringContainsString( $image_w . 'x' . $image_h, $image['file'] ); 205 205 } 206 206 … … 231 231 // Test for the expected string because the array will by definition 232 232 // return with the correct height and width attributes. 233 $this->assert True( strpos( $image['file'], $image_w . 'x' . $image_h ) > 0);233 $this->assertStringContainsString( $image_w . 'x' . $image_h, $image['file'] ); 234 234 } 235 235 … … 256 256 $image = image_get_intermediate_size( $id, array( 0, $height ) ); 257 257 258 $this->assert True( strpos( $image['file'], $width . 'x' . $height ) > 0);258 $this->assertStringContainsString( $width . 'x' . $height, $image['file'] ); 259 259 } 260 260 … … 274 274 275 275 // We should get the 'test-size' file and not the thumbnail. 276 $this->assert True( strpos( $image['file'], '200x100' ) > 0);276 $this->assertStringContainsString( '200x100', $image['file'] ); 277 277 } 278 278
Note: See TracChangeset
for help on using the changeset viewer.