From 08d5df5f44d8754e09e17fc2b0737246c63d1c14 Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Wed, 8 Jul 2015 16:04:11 +0000 Subject: [PATCH] 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 --- tests/phpunit/includes/utils.php | 14 -------------- tests/phpunit/includes/wp-profiler.php | 7 ------- 2 files changed, 21 deletions(-) diff --git a/tests/phpunit/includes/utils.php b/tests/phpunit/includes/utils.php index cd9d69da37..094b83b12e 100644 --- a/tests/phpunit/includes/utils.php +++ b/tests/phpunit/includes/utils.php @@ -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) { diff --git a/tests/phpunit/includes/wp-profiler.php b/tests/phpunit/includes/wp-profiler.php index 18ef53ef2a..b8106744ef 100644 --- a/tests/phpunit/includes/wp-profiler.php +++ b/tests/phpunit/includes/wp-profiler.php @@ -29,13 +29,6 @@ class WPProfiler { $this->profile = array(); } - /** - * PHP4 constructor. - */ - public function WPProfiler() { - self::__construct(); - } - function start($name) { $time = $this->microtime();