Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 5
DummyAnnotation
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 5
 getConfig
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 5
<?php
namespace Wikimedia\Parsoid\ParserTests;
use Wikimedia\Parsoid\Ext\ExtensionModule;
use Wikimedia\Parsoid\Ext\ExtensionTagHandler;
/**
 * Dummy annotation to test the annotation mechanisms outside of any extension-specific
 * considerations.
 */
class DummyAnnotation extends ExtensionTagHandler implements ExtensionModule {
    /** @inheritDoc */
    public function getConfig(): array {
        return [
            'name' => 'DummyAnnotation',
            // If these are not the same length as "translate" and "tvar"
            // respectively, it requires adjusting wtOffsets in the (large) test file.
            'annotations' => [ 'dummyanno', 'ann2' ]
        ];
    }
}