WordPress.org

Make WordPress Core

Changeset 811 in tests


Ignore:
Timestamp:
06/30/12 20:54:06 (22 months ago)
Author:
duck_
Message:

Port test_includes_functions.php. Fixes #81.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-testcase/test_includes_functions.php

    r703 r811  
    11<?php 
    22 
    3 class TestFunctions extends WPTestCase { 
    4     function setUp() { 
    5         parent::setUp(); 
    6     } 
    7  
    8     function tearDown() { 
    9         parent::tearDown(); 
    10     } 
    11  
     3class TestFunctions extends WP_UnitTestCase { 
    124    function test_wp_parse_args_object() { 
    135        $x = new MockClass; 
     
    252244 * Test wp_filter_object_list(), wp_list_filter(), wp_list_pluck() 
    253245 */ 
    254 class TestListFilter extends WPTestCase { 
     246class TestListFilter extends WP_UnitTestCase { 
    255247    var $object_list = array(); 
    256248    var $array_list = array(); 
     
    358350} 
    359351 
    360 class TestHTTPFunctions extends WPTestCase { 
     352/** 
     353 * @group http 
     354 */ 
     355class TestHTTPFunctions extends WP_UnitTestCase { 
    361356    function test_head_request() { 
    362357        // this url give a direct 200 response 
     
    431426} 
    432427 
    433 class Test_WP_File_Headers extends WPTestCase { 
    434     function setUp() { 
    435         parent::setUp(); 
    436     } 
    437  
    438     function tearDown() { 
    439         parent::tearDown(); 
    440     } 
    441  
     428class Test_WP_File_Headers extends WP_UnitTestCase { 
    442429    function test_get_file_data() { 
    443430        $theme_headers = array( 
Note: See TracChangeset for help on using the changeset viewer.