This repository has been archived on 2025-01-19. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
drupalcampbristol/vendor/masterminds/html5/test/HTML5/Parser/InstructionProcessorMock.php

27 lines
526 B
PHP
Raw Normal View History

2018-11-23 12:29:20 +00:00
<?php
2019-01-24 08:00:03 +00:00
2018-11-23 12:29:20 +00:00
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;
2019-01-24 08:00:03 +00:00
++$this->count;
2018-11-23 12:29:20 +00:00
2019-01-24 08:00:03 +00:00
$div = $element->ownerDocument->createElement('div');
2018-11-23 12:29:20 +00:00
$div->nodeValue = 'foo';
$element->appendChild($div);
return $div;
}
}