Make WordPress Core


Ignore:
Timestamp:
09/21/2020 01:25:38 PM (6 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/meta.php

    r48937 r49025  
    55 * @group media
    66 * @group upload
     7 * @requires extension gd
     8 * @requires extension exif
    79 */
    810class Tests_Image_Meta extends WP_UnitTestCase {
    9         function setUp() {
    10                 if ( ! extension_loaded( 'gd' ) ) {
    11                         $this->markTestSkipped( 'The gd PHP extension is not loaded.' );
    12                 }
    13                 if ( ! extension_loaded( 'exif' ) ) {
    14                         $this->markTestSkipped( 'The exif PHP extension is not loaded.' );
    15                 }
    16 
    17                 parent::setUp();
    18         }
    1911
    2012        function test_exif_d70() {
Note: See TracChangeset for help on using the changeset viewer.