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