Code Coverage
 
Lines
Functions and Methods
Classes and Traits
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 / 1
TestingParsingPlaceholderFactory
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 make
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2declare( strict_types = 1 );
3
4namespace MediaWiki\Extension\Translate\PageTranslation;
5
6use MediaWiki\Extension\Translate\Utilities\ParsingPlaceholderFactory;
7
8/**
9 * @author Niklas Laxström
10 * @license GPL-2.0-or-later
11 * @since 2020.08
12 */
13class TestingParsingPlaceholderFactory extends ParsingPlaceholderFactory {
14    /** @var int */
15    private $i = 0;
16
17    public function make(): string {
18        return '<' . $this->i++ . '>';
19    }
20}