rdbms: Rename "memCache" to "memStash" in LBFactory
[mediawiki.git] / tests / phpunit / includes / exception / ReadOnlyErrorTest.php
blobee5becffc6f03debd7c5c2981c2e600eb6bb99f0
1 <?php
3 /**
4 * @covers ReadOnlyError
5 * @author Addshore
6 */
7 class ReadOnlyErrorTest extends MediaWikiTestCase {
9 public function testConstruction() {
10 $e = new ReadOnlyError();
11 $this->assertEquals( 'readonly', $e->title );
12 $this->assertEquals( 'readonlytext', $e->msg );
13 $this->assertEquals( wfReadOnlyReason() ?: [], $e->params );