wiki.techinc.nl/tests/phpunit/includes/MediaWikiVersionFetcherTest.php
Aryeh Gregor 0278585c72 Improve MediaWikiVersionFetcherTest
Let's test that the value is actually correct, not just that it's a
string.

Change-Id: I4d76a48696a838ee6882ffce10d024f7518dcd4a
2018-08-10 11:26:57 +03:00

23 lines
607 B
PHP

<?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 >
*/
class MediaWikiVersionFetcherTest extends MediaWikiTestCase {
use MediaWikiCoversValidator;
public function testReturnsResult() {
global $wgVersion;
$versionFetcher = new MediaWikiVersionFetcher();
$this->assertSame( $wgVersion, $versionFetcher->fetchVersion() );
}
}