summaryrefslogtreecommitdiff
path: root/test/HTML5/Parser/InstructionProcessorMock.php
diff options
context:
space:
mode:
Diffstat (limited to 'test/HTML5/Parser/InstructionProcessorMock.php')
-rw-r--r--test/HTML5/Parser/InstructionProcessorMock.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/HTML5/Parser/InstructionProcessorMock.php b/test/HTML5/Parser/InstructionProcessorMock.php
index b668d26..ec69364 100644
--- a/test/HTML5/Parser/InstructionProcessorMock.php
+++ b/test/HTML5/Parser/InstructionProcessorMock.php
@@ -1,16 +1,20 @@
<?php
namespace Masterminds\HTML5\Tests\Parser;
-class InstructionProcessorMock implements \Masterminds\HTML5\InstructionProcessor {
+class InstructionProcessorMock implements \Masterminds\HTML5\InstructionProcessor
+{
public $name = NULL;
+
public $data = NULL;
+
public $count = 0;
- public function process(\DOMElement $element, $name, $data) {
+ public function process(\DOMElement $element, $name, $data)
+ {
$this->name = $name;
$this->data = $data;
- $this->count++;
+ $this->count ++;
$div = $element->ownerDocument->createElement("div");
$div->nodeValue = 'foo';
@@ -19,4 +23,4 @@ class InstructionProcessorMock implements \Masterminds\HTML5\InstructionProcesso
return $div;
}
-} \ No newline at end of file
+}