2013-12-20 22:34:49 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Note: this is not a unit test, as it touches the file system and reads an actual file.
|
|
|
|
|
* If unit tests are added for MediaWikiVersionFetcher, this should be done in a distinct test case.
|
|
|
|
|
*
|
|
|
|
|
* @covers MediaWikiVersionFetcher
|
|
|
|
|
*
|
|
|
|
|
* @group ComposerHooks
|
|
|
|
|
*
|
|
|
|
|
* @author Jeroen De Dauw < jeroendedauw@gmail.com >
|
|
|
|
|
*/
|
2019-07-08 13:25:31 +00:00
|
|
|
class MediaWikiVersionFetcherTest extends \MediaWikiIntegrationTestCase {
|
2013-12-20 22:34:49 +00:00
|
|
|
|
|
|
|
|
public function testReturnsResult() {
|
|
|
|
|
$versionFetcher = new MediaWikiVersionFetcher();
|
2020-02-25 01:28:12 +00:00
|
|
|
$this->assertSame( MW_VERSION, $versionFetcher->fetchVersion() );
|
2013-12-20 22:34:49 +00:00
|
|
|
}
|
|
|
|
|
|
2014-03-20 18:59:20 +00:00
|
|
|
}
|