Convert all array() syntax to []
[lhc/web/wiklou.git] / tests / phpunit / mocks / session / DummySessionBackend.php
1 <?php
2
3 namespace MediaWiki\Session;
4
5 /**
6 * Dummy session backend
7 *
8 * This isn't a real backend, but implements some methods that SessionBackend
9 * does so tests can run.
10 */
11 class DummySessionBackend {
12 public $data = [
13 'foo' => 1,
14 'bar' => 2,
15 0 => 'zero',
16 ];
17 public $dirty = false;
18
19 public function &getData() {
20 return $this->data;
21 }
22
23 public function dirty() {
24 $this->dirty = true;
25 }
26
27 public function deregisterSession( $index ) {
28 }
29 }