Make WordPress Core


Ignore:
Timestamp:
03/01/2021 06:42:49 PM (5 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Remove redundant teardown functionality from individual tests which is already covered in the base teardown method.

See #52625

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/http/base.php

    r50344 r50463  
    4040        }
    4141
    42         function tearDown() {
    43                 foreach ( array( 'curl', 'streams', 'fsockopen' ) as $t ) {
    44                         remove_filter( "use_{$t}_transport", '__return_false' );
    45                 }
    46                 parent::tearDown();
    47         }
    48 
    4942        function filter_http_request_args( array $args ) {
    5043                $this->http_request_args = $args;
Note: See TracChangeset for help on using the changeset viewer.