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/ajax/Response.php

    r47122 r49025  
    7171     * @preserveGlobalState disabled
    7272     * @group xdebug
     73     * @requires function xdebug_get_headers
    7374     */
    7475    public function test_response_charset_in_header() {
    75 
    76         if ( ! function_exists( 'xdebug_get_headers' ) ) {
    77             $this->markTestSkipped( 'xdebug is required for this test' );
    78         }
    7976
    8077        // Generate an Ajax response.
Note: See TracChangeset for help on using the changeset viewer.