WordPress.org

Make WordPress Core

Changeset 1204 in tests


Ignore:
Timestamp:
02/11/13 06:42:34 (3 years ago)
Author:
dd32
Message:

WP_HTTP Api tests: Ensure that fsockopen isn't disabled via the 'disable_fsockopen' option, can result in confusing test results

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/http/fsockopen.php

    r914 r1204  
    99class Tests_HTTP_fsockopen extends WP_HTTP_UnitTestCase { 
    1010    var $transport = 'fsockopen'; 
     11    function setUp() { 
     12        add_filter( 'pre_option_disable_fsockopen', '__return_null' ); 
     13        parent::setUp(); 
     14    } 
     15 
     16    function tearDown() { 
     17        remove_filter( 'pre_option_disable_fsockopen', '__return_null' ); 
     18        parent::tearDown(); 
     19    } 
    1120} 
Note: See TracChangeset for help on using the changeset viewer.