Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 8
0.00% covered (danger)
0.00%
0 / 8
CRAP
0.00% covered (danger)
0.00%
0 / 1
NullTokenHandler
0.00% covered (danger)
0.00%
0 / 8
0.00% covered (danger)
0.00%
0 / 8
72
0.00% covered (danger)
0.00%
0 / 1
 startDocument
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 endDocument
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 error
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 characters
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 startTag
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 endTag
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 doctype
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 comment
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace Wikimedia\RemexHtml\Tokenizer;
4
5/**
6 * A TokenHandler which does nothing
7 */
8class NullTokenHandler implements TokenHandler {
9    /**
10     * @inheritDoc
11     */
12    public function startDocument( Tokenizer $t, $fns, $fn ) {
13    }
14
15    /**
16     * @inheritDoc
17     */
18    public function endDocument( $pos ) {
19    }
20
21    /**
22     * @inheritDoc
23     */
24    public function error( $text, $pos ) {
25    }
26
27    /**
28     * @inheritDoc
29     */
30    public function characters( $text, $start, $length, $sourceStart, $sourceLength ) {
31    }
32
33    /**
34     * @inheritDoc
35     */
36    public function startTag( $name, Attributes $attrs, $selfClose,
37        $sourceStart, $sourceLength
38    ) {
39    }
40
41    /**
42     * @inheritDoc
43     */
44    public function endTag( $name, $sourceStart, $sourceLength ) {
45    }
46
47    /**
48     * @inheritDoc
49     */
50    public function doctype( $name, $public, $system, $quirks, $sourceStart, $sourceLength ) {
51    }
52
53    /**
54     * @inheritDoc
55     */
56    public function comment( $text, $sourceStart, $sourceLength ) {
57    }
58}