mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-07 22:56:32 +02:00
PSR-2 reformatting PHPDoc corrections
With minor corrections. Signed-off-by: Marcus Bointon <marcus@synchromedia.co.uk> Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
committed by
Edward Z. Yang
parent
19eee14899
commit
fac747bdbd
@@ -10,7 +10,8 @@ class HTMLPurifier_ErrorsHarness extends HTMLPurifier_Harness
|
||||
protected $config, $context;
|
||||
protected $collector, $generator, $callCount;
|
||||
|
||||
public 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 +21,19 @@ class HTMLPurifier_ErrorsHarness extends HTMLPurifier_Harness
|
||||
$this->callCount = 0;
|
||||
}
|
||||
|
||||
protected function expectNoErrorCollection() {
|
||||
protected function expectNoErrorCollection()
|
||||
{
|
||||
$this->collector->expectNever('send');
|
||||
}
|
||||
|
||||
protected function expectErrorCollection() {
|
||||
protected function expectErrorCollection()
|
||||
{
|
||||
$args = func_get_args();
|
||||
$this->collector->expectOnce('send', $args);
|
||||
}
|
||||
|
||||
protected function expectContext($key, $value) {
|
||||
protected function expectContext($key, $value)
|
||||
{
|
||||
$this->collector->expectContext($key, $value);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user