MW_PHPUNIT_TEST will always be defined during tests, so we can't have a
test that requires it to be undefined.
Change-Id: I67b011af31026bc9c568725f8f294359b63f2fd5
* @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" );
}