More complete, more straightforward JobQueueMemoryTest
[mediawiki.git] / tests / phpunit / mocks / session / DummySessionBackend.php
blobf96e61c4801888ffaf1e25bdd11563c89114e7c7
1 <?php
3 namespace MediaWiki\Session;
5 /**
6 * Dummy session backend
8 * This isn't a real backend, but implements some methods that SessionBackend
9 * does so tests can run.
11 class DummySessionBackend {
12 public $data = array(
13 'foo' => 1,
14 'bar' => 2,
15 0 => 'zero',
17 public $dirty = false;
19 public function &getData() {
20 return $this->data;
23 public function dirty() {
24 $this->dirty = true;
27 public function deregisterSession( $index ) {