diff options
Diffstat (limited to 'www/wiki/tests/phpunit/includes/MediaWikiVersionFetcherTest.php')
-rw-r--r-- | www/wiki/tests/phpunit/includes/MediaWikiVersionFetcherTest.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/www/wiki/tests/phpunit/includes/MediaWikiVersionFetcherTest.php b/www/wiki/tests/phpunit/includes/MediaWikiVersionFetcherTest.php new file mode 100644 index 00000000..87a7dffd --- /dev/null +++ b/www/wiki/tests/phpunit/includes/MediaWikiVersionFetcherTest.php @@ -0,0 +1,22 @@ +<?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() ); + } + +} |