diff options
author | Andrew Dolgov <[email protected]> | 2022-07-31 09:15:00 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2022-07-31 09:15:00 +0300 |
commit | 7187ab859db71fd706a6ea67587b21ad0fe588df (patch) | |
tree | 0c36632720ec06fb18dd999132fffdb55284fb8c /plugins/af_readability/vendor/masterminds/html5/test/HTML5/Parser/InstructionProcessorMock.php | |
parent | 4aefbd628e9a0e1eac58523904ad887b0635cda3 (diff) |
fork masterminds html5-php
Diffstat (limited to 'plugins/af_readability/vendor/masterminds/html5/test/HTML5/Parser/InstructionProcessorMock.php')
-rw-r--r-- | plugins/af_readability/vendor/masterminds/html5/test/HTML5/Parser/InstructionProcessorMock.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/plugins/af_readability/vendor/masterminds/html5/test/HTML5/Parser/InstructionProcessorMock.php b/plugins/af_readability/vendor/masterminds/html5/test/HTML5/Parser/InstructionProcessorMock.php new file mode 100644 index 000000000..4637a802c --- /dev/null +++ b/plugins/af_readability/vendor/masterminds/html5/test/HTML5/Parser/InstructionProcessorMock.php @@ -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; + } +} |