Make WordPress Core


Ignore:
Timestamp:
09/21/2020 01:25:38 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Tests: Convert a few more function_exists() and extension_loaded() checks to @requires annotations.

This better utilizes the PHPUnit native functionality.

Follow-up to [49024].

See #50639, #50640.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/image/editorImagick.php

    r48937 r49025  
    549549     *
    550550     * @ticket 37140
     551     * @requires function exif_read_data
    551552     */
    552553    public function test_remove_orientation_data_on_rotate() {
    553         if ( ! function_exists( 'exif_read_data' ) ) {
    554             $this->markTestSkipped( 'This test requires the exif_read_data function.' );
    555         }
    556 
    557554        $file = DIR_TESTDATA . '/images/test-image-upside-down.jpg';
    558555        $data = wp_read_image_metadata( $file );
Note: See TracChangeset for help on using the changeset viewer.