/**
* @covers ErrorPageError
- * @author Adam Shorland
+ * @author Addshore
*/
class ErrorPageErrorTest extends MediaWikiTestCase {
public function testConstruction() {
$mockMessage = $this->getMockMessage();
$title = 'Foo';
- $params = array( 'Baz' );
+ $params = [ 'Baz' ];
$e = new ErrorPageError( $title, $mockMessage, $params );
$this->assertEquals( $title, $e->title );
$this->assertEquals( $mockMessage, $e->msg );
public function testReport() {
$mockMessage = $this->getMockMessage();
$title = 'Foo';
- $params = array( 'Baz' );
+ $params = [ 'Baz' ];
$mock = $this->getMockBuilder( 'OutputPage' )
->disableOriginalConstructor()
$mock->expects( $this->once() )
->method( 'output' );
$this->setMwGlobals( 'wgOut', $mock );
+ $this->setMwGlobals( 'wgCommandLineMode', false );
$e = new ErrorPageError( $title, $mockMessage, $params );
$e->report();