Security update for Core, with self-updated composer
[yaffs-website] / vendor / masterminds / html5 / test / HTML5 / Parser / InstructionProcessorMock.php
diff --git a/vendor/masterminds/html5/test/HTML5/Parser/InstructionProcessorMock.php b/vendor/masterminds/html5/test/HTML5/Parser/InstructionProcessorMock.php
new file mode 100644 (file)
index 0000000..32a2204
--- /dev/null
@@ -0,0 +1,26 @@
+<?php
+namespace Masterminds\HTML5\Tests\Parser;
+
+class InstructionProcessorMock implements \Masterminds\HTML5\InstructionProcessor
+{
+
+    public $name = null;
+
+    public $data = null;
+
+    public $count = 0;
+
+    public function process(\DOMElement $element, $name, $data)
+    {
+        $this->name = $name;
+        $this->data = $data;
+        $this->count ++;
+
+        $div = $element->ownerDocument->createElement("div");
+        $div->nodeValue = 'foo';
+
+        $element->appendChild($div);
+
+        return $div;
+    }
+}