Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
11 / 11
CRAP
100.00% covered (success)
100.00%
11 / 11
NullTreeHandler
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
11 / 11
11
100.00% covered (success)
100.00%
11 / 11
 startDocument
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 endDocument
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 characters
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 insertElement
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 endTag
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 doctype
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 comment
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 error
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 mergeAttributes
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 removeNode
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 reparentChildren
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
<?php
namespace RemexHtml\TreeBuilder;
use RemexHtml\Tokenizer\Attributes;
/**
 * A TreeHandler which does nothing
 */
class NullTreeHandler implements TreeHandler {
    /**
     * @inheritDoc
     */
    public function startDocument( $fns, $fn ) {
    }
    /**
     * @inheritDoc
     */
    public function endDocument( $pos ) {
    }
    /**
     * @inheritDoc
     */
    public function characters(
        $parent, $refNode, $text, $start, $length, $sourceStart, $sourceLength
    ) {
    }
    /**
     * @inheritDoc
     */
    public function insertElement( $parent, $refNode, Element $element, $void,
        $sourceStart, $sourceLength
    ) {
    }
    /**
     * @inheritDoc
     */
    public function endTag( Element $element, $sourceStart, $sourceLength ) {
    }
    /**
     * @inheritDoc
     */
    public function doctype( $name, $public, $system, $quirks, $sourceStart, $sourceLength ) {
    }
    /**
     * @inheritDoc
     */
    public function comment( $parent, $refNode, $text, $sourceStart, $sourceLength ) {
    }
    /**
     * @inheritDoc
     */
    public function error( $text, $pos ) {
    }
    /**
     * @inheritDoc
     */
    public function mergeAttributes( Element $element, Attributes $attrs, $sourceStart ) {
    }
    /**
     * @inheritDoc
     */
    public function removeNode( Element $element, $sourceStart ) {
    }
    /**
     * @inheritDoc
     */
    public function reparentChildren( Element $element, Element $newParent, $sourceStart ) {
    }
}