blob: 86572c77f854b8ad7919c43842c37acf4664b5c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?php
namespace HTML5\Tests\Parser;
class InstructionProcessorMock implements \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;
}
}
|