mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-11 16:44:59 +02:00
Classname() constructors to __construct() constructors, as per SimpleTest. Also normalized ppp declarations; no public declaration for test methods, public/protected for the rest
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1663 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
@@ -10,7 +10,7 @@ class HTMLPurifier_ErrorsHarness extends HTMLPurifier_Harness
|
||||
protected $config, $context;
|
||||
protected $collector, $generator, $callCount;
|
||||
|
||||
function setup() {
|
||||
public function setup() {
|
||||
$this->config = HTMLPurifier_Config::create(array('Core.CollectErrors' => true));
|
||||
$this->context = new HTMLPurifier_Context();
|
||||
generate_mock_once('HTMLPurifier_ErrorCollector');
|
||||
@@ -20,16 +20,16 @@ class HTMLPurifier_ErrorsHarness extends HTMLPurifier_Harness
|
||||
$this->callCount = 0;
|
||||
}
|
||||
|
||||
function expectNoErrorCollection() {
|
||||
protected function expectNoErrorCollection() {
|
||||
$this->collector->expectNever('send');
|
||||
}
|
||||
|
||||
function expectErrorCollection() {
|
||||
protected function expectErrorCollection() {
|
||||
$args = func_get_args();
|
||||
$this->collector->expectOnce('send', $args);
|
||||
}
|
||||
|
||||
function expectContext($key, $value) {
|
||||
protected function expectContext($key, $value) {
|
||||
$this->collector->expectContext($key, $value);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user