Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
DummyAnnotation | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
getConfig | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | declare( strict_types = 1 ); |
3 | |
4 | namespace Wikimedia\Parsoid\ParserTests; |
5 | |
6 | use Wikimedia\Parsoid\Ext\ExtensionModule; |
7 | use Wikimedia\Parsoid\Ext\ExtensionTagHandler; |
8 | |
9 | /** |
10 | * Dummy annotation to test the annotation mechanisms outside of any extension-specific |
11 | * considerations. |
12 | */ |
13 | class DummyAnnotation extends ExtensionTagHandler implements ExtensionModule { |
14 | /** @inheritDoc */ |
15 | public function getConfig(): array { |
16 | return [ |
17 | 'name' => 'DummyAnnotation', |
18 | // If these are not the same length as "translate" and "tvar" |
19 | // respectively, it requires adjusting wtOffsets in the (large) test file. |
20 | 'annotations' => [ 'dummyanno', 'ann2' ] |
21 | ]; |
22 | } |
23 | } |