diff --git a/benchmarks/Lexer.php b/benchmarks/Lexer.php index d612fc3c..c44e0a5f 100644 --- a/benchmarks/Lexer.php +++ b/benchmarks/Lexer.php @@ -25,7 +25,7 @@ class RowTimer extends Benchmark_Timer public $name; - public function RowTimer($name, $auto = false) + public function __construct($name, $auto = false) { $this->name = htmlentities($name); $this->Benchmark_Timer($auto); diff --git a/tests/Debugger.php b/tests/Debugger.php index 918320a4..87a02adc 100644 --- a/tests/Debugger.php +++ b/tests/Debugger.php @@ -76,7 +76,7 @@ class Debugger public $scope_nextID = 1; public $add_pre = true; - public function Debugger() + public function __construct() { $this->add_pre = !extension_loaded('xdebug'); } diff --git a/tests/HTMLPurifier/AttrDef/CSS/CompositeTest.php b/tests/HTMLPurifier/AttrDef/CSS/CompositeTest.php index ab683e36..7121fc42 100644 --- a/tests/HTMLPurifier/AttrDef/CSS/CompositeTest.php +++ b/tests/HTMLPurifier/AttrDef/CSS/CompositeTest.php @@ -5,7 +5,7 @@ class HTMLPurifier_AttrDef_CSS_Composite_Testable extends { // we need to pass by ref to get the mocks in - public function HTMLPurifier_AttrDef_CSS_Composite_Testable(&$defs) + public function __construct(&$defs) { $this->defs =& $defs; }