MediaWikiVersionFetcherTest.php 607 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Note: this is not a unit test, as it touches the file system and reads an actual file.
  4. * If unit tests are added for MediaWikiVersionFetcher, this should be done in a distinct test case.
  5. *
  6. * @covers MediaWikiVersionFetcher
  7. *
  8. * @group ComposerHooks
  9. *
  10. * @author Jeroen De Dauw < jeroendedauw@gmail.com >
  11. */
  12. class MediaWikiVersionFetcherTest extends MediaWikiTestCase {
  13. use MediaWikiCoversValidator;
  14. public function testReturnsResult() {
  15. global $wgVersion;
  16. $versionFetcher = new MediaWikiVersionFetcher();
  17. $this->assertSame( $wgVersion, $versionFetcher->fetchVersion() );
  18. }
  19. }