diff --git a/tests/phpunit/tests/ajax/Compression.php b/tests/phpunit/tests/ajax/Compression.php index d82e0c54b9..1e65d718b5 100644 --- a/tests/phpunit/tests/ajax/Compression.php +++ b/tests/phpunit/tests/ajax/Compression.php @@ -57,7 +57,7 @@ class Tests_Ajax_CompressionTest extends WP_Ajax_UnitTestCase { public function test_gzdeflate() { if ( !function_exists( 'gzdeflate' ) ) { - $this->markTestSkipped( 'gzdeflate function not available' ); + $this->fail( 'gzdeflate function not available' ); } // Become an administrator @@ -84,7 +84,7 @@ class Tests_Ajax_CompressionTest extends WP_Ajax_UnitTestCase { public function test_gzencode() { if ( !function_exists('gzencode') ) { - $this->markTestSkipped( 'gzencode function not available' ); + $this->fail( 'gzencode function not available' ); } // Become an administrator diff --git a/tests/phpunit/tests/db.php b/tests/phpunit/tests/db.php index 9595d3df18..ab4186c794 100644 --- a/tests/phpunit/tests/db.php +++ b/tests/phpunit/tests/db.php @@ -507,7 +507,7 @@ class Tests_DB extends WP_UnitTestCase { if ( count( $wpdb->get_results( 'SHOW CREATE PROCEDURE `test_mysqli_flush_sync_procedure`' ) ) < 1 ) { $wpdb->suppress_errors( $suppress ); - $this->markTestSkipped( 'procedure could not be created (missing privileges?)' ); + $this->fail( 'procedure could not be created (missing privileges?)' ); } $post_id = self::factory()->post->create(); diff --git a/tests/phpunit/tests/functions/deprecated.php b/tests/phpunit/tests/functions/deprecated.php index 542ea392bb..9735fd8caf 100644 --- a/tests/phpunit/tests/functions/deprecated.php +++ b/tests/phpunit/tests/functions/deprecated.php @@ -140,7 +140,7 @@ class Test_Functions_Deprecated extends WP_UnitTestCase { */ public function test_wp_save_image_file_deprecated_with_gd_resource() { if ( !function_exists( 'imagejpeg' ) ) - $this->markTestSkipped( 'jpeg support unavailable' ); + $this->fail( 'jpeg support unavailable' ); // Call wp_save_image_file include_once( ABSPATH . 'wp-admin/includes/image-edit.php' ); @@ -161,7 +161,7 @@ class Test_Functions_Deprecated extends WP_UnitTestCase { */ public function test_wp_save_image_file_not_deprecated_with_wp_image_editor() { if ( !function_exists( 'imagejpeg' ) ) - $this->markTestSkipped( 'jpeg support unavailable' ); + $this->fail( 'jpeg support unavailable' ); // Call wp_save_image_file include_once( ABSPATH . 'wp-admin/includes/image-edit.php' ); diff --git a/tests/phpunit/tests/image/meta.php b/tests/phpunit/tests/image/meta.php index 30613d48a8..f132d90d4e 100644 --- a/tests/phpunit/tests/image/meta.php +++ b/tests/phpunit/tests/image/meta.php @@ -11,8 +11,6 @@ class Tests_Image_Meta extends WP_UnitTestCase { $this->markTestSkipped( 'The gd PHP extension is not loaded.' ); if ( ! extension_loaded( 'exif' ) ) $this->markTestSkipped( 'The exif PHP extension is not loaded.' ); - if ( ! is_callable( 'wp_read_image_metadata' ) ) - $this->markTestSkipped( 'wp_read_image_metadata() is not callable.' ); parent::setUp(); }