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/http/functions.php

    r48937 r49025  
    44 * @group http
    55 * @group external-http
     6 * @requires extension openssl
    67 */
    78class Tests_HTTP_Functions extends WP_UnitTestCase {
    8 
    9     public function setUp() {
    10         if ( ! extension_loaded( 'openssl' ) ) {
    11             $this->markTestSkipped( 'Tests_HTTP_Functions requires openssl.' );
    12         }
    13 
    14         parent::setUp();
    15     }
    169
    1710    function test_head_request() {
Note: See TracChangeset for help on using the changeset viewer.