1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-07-31 03:10:09 +02:00

Undo start()/end() error collector changes in AttrValidator.

Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
This commit is contained in:
Edward Z. Yang
2008-09-05 17:25:35 -04:00
parent ed7983b559
commit 3184fee468
3 changed files with 8 additions and 93 deletions

View File

@@ -112,6 +112,7 @@ class HTMLPurifier_ErrorCollectorTest extends HTMLPurifier_Harness
}
/*
function testNestedErrors() {
$this->language->setReturnValue('getMessage', 'Message 1', array('message-1'));
$this->language->setReturnValue('getMessage', 'Message 2', array('message-2'));
@@ -142,38 +143,7 @@ class HTMLPurifier_ErrorCollectorTest extends HTMLPurifier_Harness
$this->assertIdentical($formatted_result, $formatted_expect);
}
function testNestedErrorsQuiet() {
$this->language->setReturnValue('getMessage', 'Incidental errors', array('ErrorCollector: Incidental errors'));
$this->language->setReturnValue('getMessage', 'Message', array('message'));
$this->language->setReturnValue('formatMessage', ' at line 4', array('ErrorCollector: At line', array('line' => 4)));
$this->line = 4;
$this->collector->start();
$this->collector->send(E_WARNING, 'message');
$this->collector->end();
$expect = array(
0 => array(4, E_NOTICE, 'Incidental errors', array(
0 => array(4, E_WARNING, 'Message', array()),
)),
);
$result = $this->collector->getRaw();
$this->assertIdentical($result, $expect);
}
function testNestedErrorsReallyQuiet() {
$this->collector->start();
$this->collector->end();
$expect = array();
$result = $this->collector->getRaw();
$this->assertIdentical($result, $expect);
}
*/
}