Relax SpecialPageFatalTest about deprecation notices
authorUmherirrender <umherirrender_de.wp@web.de>
Fri, 19 Apr 2019 18:18:22 +0000 (20:18 +0200)
committerUmherirrender <umherirrender_de.wp@web.de>
Fri, 19 Apr 2019 18:18:22 +0000 (20:18 +0200)
Deprecation notice from SpecialPageFatalTest is the most merge blocker
since merge of I8fb26380724b6b12bf08458dbff2e00b759d219b
Deprecation can occur at any time and than break many extensions to
merge, even there are still working.
Ignore deprecation as before, but keep the error and notices

Change-Id: Idcbc38b662c569fbe8e778a6b1ab815db332dc08

tests/phpunit/structure/SpecialPageFatalTest.php

index 97797ca..026b903 100644 (file)
@@ -32,6 +32,9 @@ class SpecialPageFatalTest extends MediaWikiTestCase {
 
                try {
                        $executor->executeSpecialPage( $page, '', null, null, $user );
+               } catch ( \PHPUnit\Framework\Error\Deprecated $deprecated ) {
+                       // Allow deprecation,
+                       // this test want to check fatals or other things breaking the extension
                } catch ( \PHPUnit\Framework\Error\Error $error ) {
                        // Let phpunit settings working:
                        // - convertErrorsToExceptions="true"