Merge "Update docs/hooks.txt for ShowSearchHitTitle"
[mediawiki.git] / tests / phpunit / mocks / session / DummySessionBackend.php
blobd5d771bd3a1c6a895199f2f170e320f39a5ccb30
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 = [
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 ) {