3 namespace MediaWiki\Tests\Session
;
5 use MediaWiki\User\User
;
8 * Dummy session backend
10 * This isn't a real backend, but implements some methods that SessionBackend
11 * does so tests can run.
13 * FIXME This class is a huge hack, and it won't work e.g. as methods in Session(Backend) are typehinted.
14 * SessionBackend should be mocked directly instead, but that's currently impossible because the class is final.
15 * At the very least, there should be an interface that SessionBackend implements, and that could also be used
18 class DummySessionBackend
{
26 public $dirty = false;
28 public function &getData() {
32 public function dirty() {
36 public function getUser(): User
{
40 public function deregisterSession( $index ) {