Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 31
0.00% covered (danger)
0.00%
0 / 31
CRAP
0.00% covered (danger)
0.00%
0 / 1
Node
0.00% covered (danger)
0.00%
0 / 31
0.00% covered (danger)
0.00%
0 / 31
992
0.00% covered (danger)
0.00%
0 / 1
 _unimplemented
n/a
0 / 0
n/a
0 / 0
0
 getNodeType
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getNodeName
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getBaseURI
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getIsConnected
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getOwnerDocument
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getRootNode
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getParentNode
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getParentElement
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 hasChildNodes
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getChildNodes
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getFirstChild
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getLastChild
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getPreviousSibling
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getNextSibling
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getNodeValue
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setNodeValue
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getTextContent
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setTextContent
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 normalize
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 cloneNode
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 isEqualNode
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 isSameNode
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 compareDocumentPosition
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 contains
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 lookupPrefix
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 lookupNamespaceURI
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 isDefaultNamespace
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 insertBefore
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 appendChild
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 replaceChild
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 removeChild
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3// AUTOMATICALLY GENERATED.  DO NOT EDIT.
4// Use `composer build` to regenerate.
5
6namespace Wikimedia\IDLeDOM\Stub;
7
8use Exception;
9use Wikimedia\IDLeDOM\Document;
10use Wikimedia\IDLeDOM\Element;
11use Wikimedia\IDLeDOM\GetRootNodeOptions;
12use Wikimedia\IDLeDOM\NodeList;
13
14trait Node {
15
16    // Underscore is used to avoid conflicts with DOM-reserved names
17    // phpcs:disable PSR2.Methods.MethodDeclaration.Underscore
18    // phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
19
20    /**
21     * @return Exception
22     */
23    abstract protected function _unimplemented(): Exception;
24
25    // phpcs:enable
26
27    /**
28     * @return int
29     */
30    public function getNodeType(): int {
31        throw self::_unimplemented();
32    }
33
34    /**
35     * @return string
36     */
37    public function getNodeName(): string {
38        throw self::_unimplemented();
39    }
40
41    /**
42     * @return string
43     */
44    public function getBaseURI(): string {
45        throw self::_unimplemented();
46    }
47
48    /**
49     * @return bool
50     */
51    public function getIsConnected(): bool {
52        throw self::_unimplemented();
53    }
54
55    /**
56     * @return Document|null
57     */
58    public function getOwnerDocument() {
59        throw self::_unimplemented();
60    }
61
62    /**
63     * @param GetRootNodeOptions|associative-array|null $options
64     * @return \Wikimedia\IDLeDOM\Node
65     */
66    public function getRootNode( /* ?mixed */ $options = null ) {
67        throw self::_unimplemented();
68    }
69
70    /**
71     * @return \Wikimedia\IDLeDOM\Node|null
72     */
73    public function getParentNode() {
74        throw self::_unimplemented();
75    }
76
77    /**
78     * @return Element|null
79     */
80    public function getParentElement() {
81        throw self::_unimplemented();
82    }
83
84    /**
85     * @return bool
86     */
87    public function hasChildNodes(): bool {
88        throw self::_unimplemented();
89    }
90
91    /**
92     * @return NodeList
93     */
94    public function getChildNodes() {
95        throw self::_unimplemented();
96    }
97
98    /**
99     * @return \Wikimedia\IDLeDOM\Node|null
100     */
101    public function getFirstChild() {
102        throw self::_unimplemented();
103    }
104
105    /**
106     * @return \Wikimedia\IDLeDOM\Node|null
107     */
108    public function getLastChild() {
109        throw self::_unimplemented();
110    }
111
112    /**
113     * @return \Wikimedia\IDLeDOM\Node|null
114     */
115    public function getPreviousSibling() {
116        throw self::_unimplemented();
117    }
118
119    /**
120     * @return \Wikimedia\IDLeDOM\Node|null
121     */
122    public function getNextSibling() {
123        throw self::_unimplemented();
124    }
125
126    /**
127     * @return ?string
128     */
129    public function getNodeValue(): ?string {
130        throw self::_unimplemented();
131    }
132
133    /**
134     * @param ?string $val
135     */
136    public function setNodeValue( ?string $val ): void {
137        throw self::_unimplemented();
138    }
139
140    /**
141     * @return ?string
142     */
143    public function getTextContent(): ?string {
144        throw self::_unimplemented();
145    }
146
147    /**
148     * @param ?string $val
149     */
150    public function setTextContent( ?string $val ): void {
151        throw self::_unimplemented();
152    }
153
154    /**
155     * @return void
156     */
157    public function normalize(): void {
158        throw self::_unimplemented();
159    }
160
161    /**
162     * @param bool $deep
163     * @return \Wikimedia\IDLeDOM\Node
164     */
165    public function cloneNode( bool $deep = false ) {
166        throw self::_unimplemented();
167    }
168
169    /**
170     * @param \Wikimedia\IDLeDOM\Node|null $otherNode
171     * @return bool
172     */
173    public function isEqualNode( /* ?\Wikimedia\IDLeDOM\Node */ $otherNode ): bool {
174        throw self::_unimplemented();
175    }
176
177    /**
178     * @param \Wikimedia\IDLeDOM\Node|null $otherNode
179     * @return bool
180     */
181    public function isSameNode( /* ?\Wikimedia\IDLeDOM\Node */ $otherNode ): bool {
182        throw self::_unimplemented();
183    }
184
185    /**
186     * @param \Wikimedia\IDLeDOM\Node $other
187     * @return int
188     */
189    public function compareDocumentPosition( /* \Wikimedia\IDLeDOM\Node */ $other ): int {
190        throw self::_unimplemented();
191    }
192
193    /**
194     * @param \Wikimedia\IDLeDOM\Node|null $other
195     * @return bool
196     */
197    public function contains( /* ?\Wikimedia\IDLeDOM\Node */ $other ): bool {
198        throw self::_unimplemented();
199    }
200
201    /**
202     * @param ?string $namespace
203     * @return ?string
204     */
205    public function lookupPrefix( ?string $namespace ): ?string {
206        throw self::_unimplemented();
207    }
208
209    /**
210     * @param ?string $prefix
211     * @return ?string
212     */
213    public function lookupNamespaceURI( ?string $prefix ): ?string {
214        throw self::_unimplemented();
215    }
216
217    /**
218     * @param ?string $namespace
219     * @return bool
220     */
221    public function isDefaultNamespace( ?string $namespace ): bool {
222        throw self::_unimplemented();
223    }
224
225    /**
226     * @param \Wikimedia\IDLeDOM\Node $node
227     * @param \Wikimedia\IDLeDOM\Node|null $child
228     * @return \Wikimedia\IDLeDOM\Node
229     */
230    public function insertBefore( /* \Wikimedia\IDLeDOM\Node */ $node, /* ?\Wikimedia\IDLeDOM\Node */ $child = null ) {
231        throw self::_unimplemented();
232    }
233
234    /**
235     * @param \Wikimedia\IDLeDOM\Node $node
236     * @return \Wikimedia\IDLeDOM\Node
237     */
238    public function appendChild( /* \Wikimedia\IDLeDOM\Node */ $node ) {
239        throw self::_unimplemented();
240    }
241
242    /**
243     * @param \Wikimedia\IDLeDOM\Node $node
244     * @param \Wikimedia\IDLeDOM\Node $child
245     * @return \Wikimedia\IDLeDOM\Node
246     */
247    public function replaceChild( /* \Wikimedia\IDLeDOM\Node */ $node, /* \Wikimedia\IDLeDOM\Node */ $child ) {
248        throw self::_unimplemented();
249    }
250
251    /**
252     * @param \Wikimedia\IDLeDOM\Node $child
253     * @return \Wikimedia\IDLeDOM\Node
254     */
255    public function removeChild( /* \Wikimedia\IDLeDOM\Node */ $child ) {
256        throw self::_unimplemented();
257    }
258
259}