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