Make WordPress Core

Changeset 33123


Ignore:
Timestamp:
07/08/2015 04:04:11 PM (11 years ago)
Author:
jorbin
Message:

Remove PHP4 constructors from Unit Tests

If you are subclassing these classes in your own tests, you'll need to update your code.

Props johnbillion
See #31982

Location:
trunk/tests/phpunit/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/utils.php

    r32990 r33123  
    3232                $this->reset();
    3333                $this->debug = $debug;
    34         }
    35 
    36         /**
    37          * PHP4 constructor.
    38          */
    39         public function MockAction( $debug = 0 ) {
    40                 self::__construct( $debug );
    4134        }
    4235
     
    150143                xml_set_character_data_handler($this->xml, array($this, 'dataHandler'));
    151144                $this->parse($in);
    152         }
    153 
    154         /**
    155          * PHP4 constructor.
    156          */
    157         public function testXMLParser( $in ) {
    158                 self::__construct( $in );
    159145        }
    160146
  • trunk/tests/phpunit/includes/wp-profiler.php

    r32990 r33123  
    2828                $this->stack = array();
    2929                $this->profile = array();
    30         }
    31 
    32         /**
    33          * PHP4 constructor.
    34          */
    35         public function WPProfiler() {
    36                 self::__construct();
    3730        }
    3831
Note: See TracChangeset for help on using the changeset viewer.