Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| WebInstallerReleaseNotes | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 1 |
| getFileName | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
6 | |||
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * @license GPL-2.0-or-later |
| 5 | * @file |
| 6 | * @ingroup Installer |
| 7 | */ |
| 8 | |
| 9 | namespace MediaWiki\Installer; |
| 10 | |
| 11 | use LogicException; |
| 12 | |
| 13 | class WebInstallerReleaseNotes extends WebInstallerDocument { |
| 14 | |
| 15 | /** |
| 16 | * @return string |
| 17 | */ |
| 18 | protected function getFileName() { |
| 19 | if ( !preg_match( '/^(\d+)\.(\d+).*/i', MW_VERSION, $result ) ) { |
| 20 | throw new LogicException( 'Constant MW_VERSION has an invalid value.' ); |
| 21 | } |
| 22 | |
| 23 | return 'RELEASE-NOTES-' . $result[1] . '.' . $result[2]; |
| 24 | } |
| 25 | |
| 26 | } |