You are here

class InstructionProcessorMock in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/masterminds/html5/test/HTML5/Parser/InstructionProcessorMock.php \Masterminds\HTML5\Tests\Parser\InstructionProcessorMock

Hierarchy

Expanded class hierarchy of InstructionProcessorMock

File

vendor/masterminds/html5/test/HTML5/Parser/InstructionProcessorMock.php, line 4

Namespace

Masterminds\HTML5\Tests\Parser
View 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

Namesort descending Modifiers Type Description Overrides
InstructionProcessorMock::$count public property
InstructionProcessorMock::$data public property
InstructionProcessorMock::$name public property
InstructionProcessorMock::process public function Process an individual processing instruction. Overrides InstructionProcessor::process