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/oembed/headers.php

    r46586 r49025  
    99 */
    1010class Tests_oEmbed_HTTP_Headers extends WP_UnitTestCase {
     11
     12    /**
     13     * @requires function xdebug_get_headers
     14     */
    1115    function test_rest_pre_serve_request_headers() {
    12         if ( ! function_exists( 'xdebug_get_headers' ) ) {
    13             $this->markTestSkipped( 'xdebug is required for this test' );
    14         }
    15 
    1616        $post = $this->factory()->post->create_and_get(
    1717            array(
Note: See TracChangeset for help on using the changeset viewer.