Merge "Reduce selector specificity of `.wikitable`"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sat, 19 Jan 2019 01:13:07 +0000 (01:13 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 19 Jan 2019 01:13:07 +0000 (01:13 +0000)
includes/registration/ExtensionRegistry.php

index e3bd542..88d9fd3 100644 (file)
@@ -433,9 +433,11 @@ class ExtensionRegistry {
         * @since 1.33
         */
        public function setAttributeForTest( $name, array $value ) {
+               // @codeCoverageIgnoreStart
                if ( !defined( 'MW_PHPUNIT_TEST' ) ) {
                        throw new RuntimeException( __METHOD__ . ' can only be used in tests' );
                }
+               // @codeCoverageIgnoreEnd
                if ( isset( $this->testAttributes[$name] ) ) {
                        throw new Exception( "The attribute '$name' has already been overridden" );
                }