Changeset 40532
- Timestamp:
- 04/22/2017 10:11:56 PM (8 years ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/editor_gd.php
r39580 r40532 469 469 public function test_image_preserves_alpha_on_resize() { 470 470 if ( ! ( imagetypes() & IMG_PNG ) ) { 471 $this-> markTestSkipped( 'This test requires PHP to be compiled with PNG support.' );471 $this->fail( 'This test requires PHP to be compiled with PNG support.' ); 472 472 } 473 473 … … 496 496 public function test_image_preserves_alpha() { 497 497 if ( ! ( imagetypes() & IMG_PNG ) ) { 498 $this-> markTestSkipped( 'This test requires PHP to be compiled with PNG support.' );498 $this->fail( 'This test requires PHP to be compiled with PNG support.' ); 499 499 } 500 500 … … 522 522 public function test_image_preserves_alpha_on_rotate() { 523 523 if ( ! ( imagetypes() & IMG_PNG ) ) { 524 $this-> markTestSkipped( 'This test requires PHP to be compiled with PNG support.' );524 $this->fail( 'This test requires PHP to be compiled with PNG support.' ); 525 525 } 526 526 -
trunk/tests/phpunit/tests/image/functions.php
r40131 r40532 290 290 public function test_wp_crop_image_file() { 291 291 if ( !function_exists( 'imagejpeg' ) ) 292 $this-> markTestSkipped( 'jpeg support unavailable' );292 $this->fail( 'jpeg support unavailable' ); 293 293 294 294 $file = wp_crop_image( DIR_TESTDATA . '/images/canola.jpg', … … 306 306 public function test_wp_crop_image_url() { 307 307 if ( !function_exists( 'imagejpeg' ) ) 308 $this-> markTestSkipped( 'jpeg support unavailable' );308 $this->fail( 'jpeg support unavailable' ); 309 309 310 310 if ( ! extension_loaded( 'openssl' ) ) { -
trunk/tests/phpunit/tests/image/intermediate_size.php
r38086 r40532 31 31 function test_make_intermediate_size_width() { 32 32 if ( !function_exists( 'imagejpeg' ) ) 33 $this-> markTestSkipped( 'jpeg support unavailable' );33 $this->fail( 'jpeg support unavailable' ); 34 34 35 35 $image = image_make_intermediate_size( DIR_TESTDATA . '/images/a2-small.jpg', 100, 0, false ); … … 40 40 function test_make_intermediate_size_height() { 41 41 if ( !function_exists( 'imagejpeg' ) ) 42 $this-> markTestSkipped( 'jpeg support unavailable' );42 $this->fail( 'jpeg support unavailable' ); 43 43 44 44 $image = image_make_intermediate_size( DIR_TESTDATA . '/images/a2-small.jpg', 0, 75, false ); … … 49 49 function test_make_intermediate_size_successful() { 50 50 if ( !function_exists( 'imagejpeg' ) ) 51 $this-> markTestSkipped( 'jpeg support unavailable' );51 $this->fail( 'jpeg support unavailable' ); 52 52 53 53 $image = image_make_intermediate_size( DIR_TESTDATA . '/images/a2-small.jpg', 100, 75, true ); -
trunk/tests/phpunit/tests/image/resize.php
r37327 r40532 43 43 44 44 if ( ! is_string( $image ) ) { // WP_Error, stop GLib-GObject-CRITICAL assertion 45 $this->markTestSkipped( sprintf( 'No PNG support in the editor engine %s on this system', $this->editor_engine ) ); 46 return; 45 $this->fail( sprintf( 'No PNG support in the editor engine %s on this system', $this->editor_engine ) ); 47 46 } 48 47 … … 60 59 61 60 if ( ! is_string( $image ) ) { // WP_Error, stop GLib-GObject-CRITICAL assertion 62 $this->markTestSkipped( sprintf( 'No GIF support in the editor engine %s on this system', $this->editor_engine ) ); 63 return; 61 $this->fail( sprintf( 'No GIF support in the editor engine %s on this system', $this->editor_engine ) ); 64 62 } 65 63 -
trunk/tests/phpunit/tests/import/parser.php
r39174 r40532 17 17 18 18 if ( ! file_exists( DIR_TESTDATA . '/plugins/wordpress-importer/wordpress-importer.php' ) ) { 19 $this-> markTestSkipped( 'WordPress Importer plugin is not installed.' );19 $this->fail( 'WordPress Importer plugin is not installed.' ); 20 20 } 21 21 -
trunk/tests/phpunit/tests/import/postmeta.php
r33250 r40532 17 17 18 18 if ( ! file_exists( DIR_TESTDATA . '/plugins/wordpress-importer/wordpress-importer.php' ) ) { 19 $this-> markTestSkipped( 'WordPress Importer plugin is not installed.' );19 $this->fail( 'WordPress Importer plugin is not installed.' ); 20 20 } 21 21
Note: See TracChangeset
for help on using the changeset viewer.