Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
11 / 11
100.00% covered (success)
100.00%
11 / 11
CRAP
100.00% covered (success)
100.00%
1 / 1
NullTreeHandler
100.00% covered (success)
100.00%
11 / 11
100.00% covered (success)
100.00%
11 / 11
11
100.00% covered (success)
100.00%
1 / 1
 startDocument
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 endDocument
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 characters
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 insertElement
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 endTag
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 doctype
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 comment
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 error
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 mergeAttributes
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 removeNode
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 reparentChildren
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace Wikimedia\RemexHtml\TreeBuilder;
4
5use Wikimedia\RemexHtml\Tokenizer\Attributes;
6
7/**
8 * A TreeHandler which does nothing
9 */
10class NullTreeHandler implements TreeHandler {
11    /**
12     * @inheritDoc
13     */
14    public function startDocument( $fns, $fn ) {
15    }
16
17    /**
18     * @inheritDoc
19     */
20    public function endDocument( $pos ) {
21    }
22
23    /**
24     * @inheritDoc
25     */
26    public function characters(
27        $parent, $refNode, $text, $start, $length, $sourceStart, $sourceLength
28    ) {
29    }
30
31    /**
32     * @inheritDoc
33     */
34    public function insertElement( $parent, $refNode, Element $element, $void,
35        $sourceStart, $sourceLength
36    ) {
37    }
38
39    /**
40     * @inheritDoc
41     */
42    public function endTag( Element $element, $sourceStart, $sourceLength ) {
43    }
44
45    /**
46     * @inheritDoc
47     */
48    public function doctype( $name, $public, $system, $quirks, $sourceStart, $sourceLength ) {
49    }
50
51    /**
52     * @inheritDoc
53     */
54    public function comment( $parent, $refNode, $text, $sourceStart, $sourceLength ) {
55    }
56
57    /**
58     * @inheritDoc
59     */
60    public function error( $text, $pos ) {
61    }
62
63    /**
64     * @inheritDoc
65     */
66    public function mergeAttributes( Element $element, Attributes $attrs, $sourceStart ) {
67    }
68
69    /**
70     * @inheritDoc
71     */
72    public function removeNode( Element $element, $sourceStart ) {
73    }
74
75    /**
76     * @inheritDoc
77     */
78    public function reparentChildren( Element $element, Element $newParent, $sourceStart ) {
79    }
80}