Changeset 49025 for trunk/tests/phpunit/tests/image/functions.php
- Timestamp:
- 09/21/2020 01:25:38 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/functions.php
r49024 r49025 150 150 * 151 151 * @ticket 6821 152 * @requires extension fileinfo 152 153 */ 153 154 public function test_wp_save_image_file() { 154 if ( ! extension_loaded( 'fileinfo' ) ) {155 $this->markTestSkipped( 'The fileinfo PHP extension is not loaded.' );156 }157 158 155 $classes = array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' ); 159 156 … … 209 206 * 210 207 * @ticket 6821 208 * @requires extension fileinfo 211 209 */ 212 210 public function test_mime_overrides_filename() { 213 if ( ! extension_loaded( 'fileinfo' ) ) {214 $this->markTestSkipped( 'The fileinfo PHP extension is not loaded.' );215 }216 217 211 $classes = array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' ); 218 212 … … 254 248 * 255 249 * @ticket 6821 250 * @requires extension fileinfo 256 251 */ 257 252 public function test_inferred_mime_types() { 258 if ( ! extension_loaded( 'fileinfo' ) ) {259 $this->markTestSkipped( 'The fileinfo PHP extension is not loaded.' );260 }261 262 253 $classes = array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' ); 263 254 … … 374 365 /** 375 366 * @requires function imagejpeg 367 * @requires extension openssl 376 368 */ 377 369 public function test_wp_crop_image_url() { 378 if ( ! extension_loaded( 'openssl' ) ) {379 $this->markTestSkipped( 'Tests_Image_Functions::test_wp_crop_image_url() requires openssl.' );380 }381 382 370 $file = wp_crop_image( 383 371 'https://asdftestblog1.files.wordpress.com/2008/04/canola.jpg', … … 419 407 } 420 408 409 /** 410 * @requires extension openssl 411 */ 421 412 public function test_wp_crop_image_url_not_exist() { 422 if ( ! extension_loaded( 'openssl' ) ) {423 $this->markTestSkipped( 'Tests_Image_Functions::test_wp_crop_image_url_not_exist() requires openssl.' );424 }425 426 413 $file = wp_crop_image( 427 414 'https://asdftestblog1.files.wordpress.com/2008/04/canoladoesnotexist.jpg',
Note: See TracChangeset
for help on using the changeset viewer.