Merge "Revert "Log the reason why revision->getContent() returns null""
[lhc/web/wiklou.git] / tests / phpunit / includes / exception / MWExceptionTest.php
index 614a1c9..b160554 100644 (file)
@@ -10,6 +10,7 @@ class MWExceptionTest extends MediaWikiTestCase {
 
        /**
         * @expectedException MWException
+        * @covers MWException
         */
        public function testMwexceptionThrowing() {
                throw new MWException();
@@ -43,7 +44,7 @@ class MWExceptionTest extends MediaWikiTestCase {
        }
 
        private function getMockLanguage() {
-               return $this->getMockBuilder( 'Language' )
+               return $this->getMockBuilder( Language::class )
                        ->disableOriginalConstructor()
                        ->getMock();
        }
@@ -110,8 +111,8 @@ class MWExceptionTest extends MediaWikiTestCase {
 
        public static function provideExceptionClasses() {
                return [
-                       [ 'Exception' ],
-                       [ 'MWException' ],
+                       [ Exception::class ],
+                       [ MWException::class ],
                ];
        }
 
@@ -146,7 +147,7 @@ class MWExceptionTest extends MediaWikiTestCase {
         */
        public static function provideJsonSerializedKeys() {
                $testCases = [];
-               foreach ( [ 'Exception', 'MWException' ] as $exClass ) {
+               foreach ( [ Exception::class, MWException::class ] as $exClass ) {
                        $exTests = [
                                [ 'string', $exClass, 'id' ],
                                [ 'string', $exClass, 'file' ],