- Added spaces after if/foreach/catch - Added new line before end of file - Added or removed spaces before/after parenthesis, comma - Added spaces around string concat Change-Id: I0590070f1b3542108e242730e8d9a3ba9831e94f
16 lines
356 B
PHP
16 lines
356 B
PHP
<?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 );
|
|
}
|
|
|
|
}
|