wiki.techinc.nl/tests/phpunit/includes/exception/ReadOnlyErrorTest.php
umherirrender 2000672ac3 Fixed spacing
- 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
2014-03-20 20:37:30 +00:00

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 );
}
}