MastermindsHTML5TestsParserInstructionProcessorMock

The Gravity PDF Masterminds HTML5 Tests Parser InstructionProcessorMock class.

Defined (1)

The class is defined in the following location(s).

/vendor/masterminds/html5/test/HTML5/Parser/InstructionProcessorMock.php  
  1. class InstructionProcessorMock implements \Masterminds\HTML5\InstructionProcessor 
  2.  
  3. public $name = null; 
  4.  
  5. public $data = null; 
  6.  
  7. public $count = 0; 
  8.  
  9. public function process(\DOMElement $element, $name, $data) 
  10. $this->name = $name; 
  11. $this->data = $data; 
  12. $this->count ++; 
  13.  
  14. $div = $element->ownerDocument->createElement("div"); 
  15. $div->nodeValue = 'foo'; 
  16.  
  17. $element->appendChild($div); 
  18.  
  19. return $div;