MediaWikiServicesTest::testDisableStorageBackend: Make PHPUnit6 happy
authorJames D. Forrester <jforrester@wikimedia.org>
Thu, 12 Apr 2018 20:58:31 +0000 (13:58 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Thu, 12 Apr 2018 22:29:56 +0000 (15:29 -0700)
Ugly, but it works.

Bug: T191678
Change-Id: I0436034370dd66191990aa195ee3bdf5cd638e76

tests/phpunit/includes/MediaWikiServicesTest.php

index 2e93f36..03588ae 100644 (file)
@@ -178,6 +178,9 @@ class MediaWikiServicesTest extends MediaWikiTestCase {
 
                MediaWikiServices::forceGlobalInstance( $oldServices );
                $newServices->destroy();
+
+               // No exception was thrown, avoid being risky
+               $this->assertTrue( true );
        }
 
        public function testResetChildProcessServices() {