Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
DummyAnnotation
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 getConfig
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2declare( strict_types = 1 );
3
4namespace Wikimedia\Parsoid\ParserTests;
5
6use Wikimedia\Parsoid\Ext\ExtensionModule;
7use Wikimedia\Parsoid\Ext\ExtensionTagHandler;
8
9/**
10 * Dummy annotation to test the annotation mechanisms outside of any extension-specific
11 * considerations.
12 */
13class 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}