MediaWiki
REL1_31
MediaWikiVersionFetcherTest.php
Go to the documentation of this file.
1
<?php
2
13
class
MediaWikiVersionFetcherTest
extends
PHPUnit\Framework\TestCase {
14
15
use MediaWikiCoversValidator;
16
17
public
function
testReturnsResult
() {
18
$versionFetcher =
new
MediaWikiVersionFetcher
();
19
$this->assertSame(
MW_VERSION
, $versionFetcher->fetchVersion() );
20
}
21
22
}
MW_VERSION
const MW_VERSION
The running version of MediaWiki.
Definition
Defines.php:40
MediaWikiVersionFetcherTest
Note: this is not a unit test, as it touches the file system and reads an actual file.
Definition
MediaWikiVersionFetcherTest.php:13
MediaWikiVersionFetcherTest\testReturnsResult
testReturnsResult()
Definition
MediaWikiVersionFetcherTest.php:17
MediaWikiVersionFetcher
Provides access to MediaWiki's version without requiring MediaWiki (or anything else) being loaded fi...
Definition
MediaWikiVersionFetcher.php:9
tests
phpunit
includes
MediaWikiVersionFetcherTest.php
Generated on Mon Nov 25 2024 15:36:29 for MediaWiki by
1.10.0