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 git-svn-id: https://develop.svn.wordpress.org/trunk@33123 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3762069f89
commit
08d5df5f44
@ -33,13 +33,6 @@ class MockAction {
|
||||
$this->debug = $debug;
|
||||
}
|
||||
|
||||
/**
|
||||
* PHP4 constructor.
|
||||
*/
|
||||
public function MockAction( $debug = 0 ) {
|
||||
self::__construct( $debug );
|
||||
}
|
||||
|
||||
function reset() {
|
||||
$this->events = array();
|
||||
}
|
||||
@ -151,13 +144,6 @@ class testXMLParser {
|
||||
$this->parse($in);
|
||||
}
|
||||
|
||||
/**
|
||||
* PHP4 constructor.
|
||||
*/
|
||||
public function testXMLParser( $in ) {
|
||||
self::__construct( $in );
|
||||
}
|
||||
|
||||
function parse($in) {
|
||||
$parse = xml_parse($this->xml, $in, sizeof($in));
|
||||
if (!$parse) {
|
||||
|
@ -29,13 +29,6 @@ class WPProfiler {
|
||||
$this->profile = array();
|
||||
}
|
||||
|
||||
/**
|
||||
* PHP4 constructor.
|
||||
*/
|
||||
public function WPProfiler() {
|
||||
self::__construct();
|
||||
}
|
||||
|
||||
function start($name) {
|
||||
$time = $this->microtime();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user