Merge "Revert "Log the reason why revision->getContent() returns null""
[lhc/web/wiklou.git] / tests / phpunit / includes / title / SubpageImportTitleFactoryTest.php
index baeb95c..008cf5d 100644 (file)
@@ -60,8 +60,8 @@ class SubpageImportTitleFactoryTest extends MediaWikiTestCase {
         * @dataProvider basicProvider
         */
        public function testBasic( ForeignTitle $foreignTitle, Title $rootPage,
-               Title $title ) {
-
+               Title $title
+       ) {
                $factory = new SubpageImportTitleFactory( $rootPage );
                $testTitle = $factory->createTitleFromForeignTitle( $foreignTitle );
 
@@ -80,7 +80,7 @@ class SubpageImportTitleFactoryTest extends MediaWikiTestCase {
         * @dataProvider failureProvider
         */
        public function testFailures( Title $rootPage ) {
-               $this->setExpectedException( 'MWException' );
+               $this->setExpectedException( MWException::class );
                new SubpageImportTitleFactory( $rootPage );
        }
 }