1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<?php /** * @covers ReadOnlyError * @author Adam Shorland */ class ReadOnlyErrorTest extends MediaWikiTestCase { public function testConstruction() { $e = new ReadOnlyError(); $this->assertEquals( 'readonly', $e->title ); $this->assertEquals( 'readonlytext', $e->msg ); $this->assertEquals( wfReadOnlyReason() ?: array(), $e->params ); } }