diff --git a/tests/phpunit/tests/image/editorImagick.php b/tests/phpunit/tests/image/editorImagick.php index ec75106239..fb88f3346d 100644 --- a/tests/phpunit/tests/image/editorImagick.php +++ b/tests/phpunit/tests/image/editorImagick.php @@ -550,6 +550,10 @@ class Tests_Image_Editor_Imagick extends WP_Image_UnitTestCase { * @ticket 37140 */ public function test_remove_orientation_data_on_rotate() { + if ( ! function_exists( 'exif_read_data' ) ) { + $this->markTestSkipped( 'This test requires the exif_read_data function.' ); + } + $file = DIR_TESTDATA . '/images/test-image-upside-down.jpg'; $data = wp_read_image_metadata( $file );