Per wikitech-l consensus: https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html Notes: * Disabled CallTimePassByReference due to false positives (T127163) Change-Id: I2c8ce713ce6600a0bb7bf67537c87044c7a45c4b
29 lines
457 B
PHP
29 lines
457 B
PHP
<?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 ) {
|
|
}
|
|
}
|