diff options
author | Yaco <franco@reevo.org> | 2020-06-04 11:01:00 -0300 |
---|---|---|
committer | Yaco <franco@reevo.org> | 2020-06-04 11:01:00 -0300 |
commit | fc7369835258467bf97eb64f184b93691f9a9fd5 (patch) | |
tree | daabd60089d2dd76d9f5fb416b005fbe159c799d /www/wiki/tests/phpunit/includes/MediaWikiVersionFetcherTest.php |
first commit
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() ); + } + +} |