Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
75.00% |
3 / 4 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
| SpecialBlankpage | |
100.00% |
3 / 3 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| execute | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | /** |
| 3 | * @license GPL-2.0-or-later |
| 4 | * @file |
| 5 | */ |
| 6 | |
| 7 | namespace MediaWiki\Specials; |
| 8 | |
| 9 | use MediaWiki\SpecialPage\UnlistedSpecialPage; |
| 10 | |
| 11 | /** |
| 12 | * Blank page designed for basic benchmarking of MediaWiki. |
| 13 | * |
| 14 | * Intentionally does not do much. |
| 15 | * |
| 16 | * @ingroup SpecialPage |
| 17 | */ |
| 18 | class SpecialBlankpage extends UnlistedSpecialPage { |
| 19 | public function __construct() { |
| 20 | parent::__construct( 'Blankpage' ); |
| 21 | } |
| 22 | |
| 23 | /** @inheritDoc */ |
| 24 | public function execute( $par ) { |
| 25 | $this->setHeaders(); |
| 26 | $this->getOutput()->addWikiMsg( 'intentionallyblankpage' ); |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | /** @deprecated class alias since 1.41 */ |
| 31 | class_alias( SpecialBlankpage::class, 'SpecialBlankpage' ); |