WordPress.org

Make WordPress Core

Changeset 951 in tests


Ignore:
Timestamp:
08/05/12 23:24:35 (21 months ago)
Author:
kurtpayne
Message:

Make sure to call parent::setUp() and parent::tearDown() in test classes

Location:
trunk/tests
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/file.php

    r909 r951  
    77 
    88    function setUp() { 
     9        parent::setUp(); 
    910        $this->dir = dirname(tempnam('/tmp', 'foo')); 
    1011 
  • trunk/tests/functions/listFilter.php

    r909 r951  
    1111 
    1212    function setUp() { 
     13        parent::setUp(); 
    1314        $this->array_list['foo'] = array( 'name' => 'foo', 'field1' => true, 'field2' => true, 'field3' => true, 'field4' => array( 'red' ) ); 
    1415        $this->array_list['bar'] = array( 'name' => 'bar', 'field1' => true, 'field2' => true, 'field3' => false, 'field4' => array( 'green' ) ); 
  • trunk/tests/http/base.php

    r904 r951  
    3939            remove_filter( "use_{$t}_transport", '__return_false' ); 
    4040        } 
     41        parent::tearDown(); 
    4142    } 
    4243 
  • trunk/tests/media.php

    r936 r951  
    88 
    99  function setUp() { 
     10    parent::setUp(); 
    1011    $this->caption = 'A simple caption.'; 
    1112    $this->html_content = <<<CAP 
  • trunk/tests/url.php

    r904 r951  
    55    var $_old_server; 
    66    function setUp() { 
     7        parent::setUp(); 
    78        $this->_old_server = $_SERVER; 
    89    } 
     
    1011    function tearDown() { 
    1112        $_SERVER = $this->_old_server; 
     13        parent::tearDown(); 
    1214    } 
    1315 
Note: See TracChangeset for help on using the changeset viewer.