Changeset 49009
- Timestamp:
- 09/20/2020 02:45:35 AM (4 years ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/http/base.php
r48937 r49009 28 28 $class = 'WP_Http_' . ucfirst( $this->transport ); 29 29 if ( ! call_user_func( array( $class, 'test' ) ) ) { 30 $this->markTestSkipped( sprintf( 'The transport %s is not supported on this system ', $this->transport ) );30 $this->markTestSkipped( sprintf( 'The transport %s is not supported on this system.', $this->transport ) ); 31 31 } 32 32 -
trunk/tests/phpunit/tests/image/base.php
r48937 r49009 13 13 14 14 if ( ! call_user_func( array( $this->editor_engine, 'test' ) ) ) { 15 $this->markTestSkipped( sprintf( 'The image editor engine %s is not supported on this system ', $this->editor_engine ) );15 $this->markTestSkipped( sprintf( 'The image editor engine %s is not supported on this system.', $this->editor_engine ) ); 16 16 } 17 17 -
trunk/tests/phpunit/tests/image/functions.php
r48937 r49009 156 156 } 157 157 158 if ( ! WP_Image_Editor_GD::test() && ! WP_Image_Editor_Imagick::test() ) { 159 $this->markTestSkipped( sprintf( 'The image editor engine %s is not supported on this system.', 'WP_Image_Editor_GD' ) ); 160 } 161 158 162 require_once ABSPATH . 'wp-admin/includes/image-edit.php'; 159 163 … … 209 213 } 210 214 215 if ( ! WP_Image_Editor_GD::test() && ! WP_Image_Editor_Imagick::test() ) { 216 $this->markTestSkipped( sprintf( 'The image editor engine %s is not supported on this system.', 'WP_Image_Editor_GD' ) ); 217 } 218 211 219 // Test each image editor engine. 212 220 $classes = array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' ); … … 246 254 if ( ! extension_loaded( 'fileinfo' ) ) { 247 255 $this->markTestSkipped( 'The fileinfo PHP extension is not loaded.' ); 256 } 257 258 if ( ! WP_Image_Editor_GD::test() && ! WP_Image_Editor_Imagick::test() ) { 259 $this->markTestSkipped( sprintf( 'The image editor engine %s is not supported on this system.', 'WP_Image_Editor_GD' ) ); 248 260 } 249 261 … … 307 319 $editor2 = wp_get_image_editor( DIR_TESTDATA ); 308 320 $this->assertNotInternalType( 'resource', $editor2 ); 321 322 if ( ! WP_Image_Editor_GD::test() && ! WP_Image_Editor_Imagick::test() ) { 323 $this->markTestSkipped( sprintf( 'The image editor engine %s is not supported on this system.', 'WP_Image_Editor_GD' ) ); 324 } 309 325 310 326 // Then, test with editors. … … 511 527 */ 512 528 public function test_crop_setting_for_pdf() { 513 514 529 if ( ! wp_image_editor_supports( array( 'mime_type' => 'application/pdf' ) ) ) { 515 530 $this->markTestSkipped( 'Rendering PDFs is not supported on this system.' );
Note: See TracChangeset
for help on using the changeset viewer.