class InstructionProcessorMock in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/masterminds/html5/test/HTML5/Parser/InstructionProcessorMock.php \Masterminds\HTML5\Tests\Parser\InstructionProcessorMock
Hierarchy
- class \Masterminds\HTML5\Tests\Parser\InstructionProcessorMock implements InstructionProcessor
Expanded class hierarchy of InstructionProcessorMock
File
- vendor/
masterminds/ html5/ test/ HTML5/ Parser/ InstructionProcessorMock.php, line 4
Namespace
Masterminds\HTML5\Tests\ParserView source
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;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
InstructionProcessorMock:: |
public | property | ||
InstructionProcessorMock:: |
public | property | ||
InstructionProcessorMock:: |
public | property | ||
InstructionProcessorMock:: |
public | function |
Process an individual processing instruction. Overrides InstructionProcessor:: |