wiki.techinc.nl/tests/phpunit/mocks/session/DummySessionBackend.php
Kunal Mehta 6e9b4f0e9c Convert all array() syntax to []
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
2016-02-17 01:33:00 -08:00

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 ) {
}
}