wiki.techinc.nl/tests/phpunit/includes/MediaWikiVersionFetcherTest.php
Umherirrender 63d96c15fd build: Updating mediawiki/mediawiki-codesniffer to 16.0.0
Change-Id: I59b59f79bbf3ce4feff3b3a20c1c31bc16370531
2018-02-17 13:29:13 +01:00

22 lines
601 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 PHPUnit\Framework\TestCase {
use MediaWikiCoversValidator;
public function testReturnsResult() {
$versionFetcher = new MediaWikiVersionFetcher();
$this->assertInternalType( 'string', $versionFetcher->fetchVersion() );
}
}