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 >
|
|
|
|
|
*/
|
|
|
|
|
class MediaWikiVersionFetcherTest extends PHPUnit_Framework_TestCase {
|
|
|
|
|
|
|
|
|
|
public function testReturnsResult() {
|
|
|
|
|
$versionFetcher = new MediaWikiVersionFetcher();
|
|
|
|
|
$this->assertInternalType( 'string', $versionFetcher->fetchVersion() );
|
|
|
|
|
}
|
|
|
|
|
|
2014-03-20 18:59:20 +00:00
|
|
|
}
|