]> scripts.mit.edu Git - autoinstalls/mediawiki.git/blob - tests/phpunit/includes/MediaWikiVersionFetcherTest.php
MediaWiki 1.30.2-scripts
[autoinstalls/mediawiki.git] / tests / phpunit / includes / MediaWikiVersionFetcherTest.php
1 <?php
2
3 /**
4  * Note: this is not a unit test, as it touches the file system and reads an actual file.
5  * If unit tests are added for MediaWikiVersionFetcher, this should be done in a distinct test case.
6  *
7  * @covers MediaWikiVersionFetcher
8  *
9  * @group ComposerHooks
10  *
11  * @author Jeroen De Dauw < jeroendedauw@gmail.com >
12  */
13 class MediaWikiVersionFetcherTest extends PHPUnit_Framework_TestCase {
14
15         public function testReturnsResult() {
16                 $versionFetcher = new MediaWikiVersionFetcher();
17                 $this->assertInternalType( 'string', $versionFetcher->fetchVersion() );
18         }
19
20 }