dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
objectcache: add MediumSpecificBagOStuff base class for non-proxy subclasses
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
session
/
TestBagOStuff.php
diff --git
a/tests/phpunit/includes/session/TestBagOStuff.php
b/tests/phpunit/includes/session/TestBagOStuff.php
index
f9e30f0
..
64148b0
100644
(file)
--- a/
tests/phpunit/includes/session/TestBagOStuff.php
+++ b/
tests/phpunit/includes/session/TestBagOStuff.php
@@
-2,13
+2,17
@@
namespace MediaWiki\Session;
namespace MediaWiki\Session;
+use CachedBagOStuff;
+use HashBagOStuff;
+use RequestContext;
+
/**
* BagOStuff with utility functions for MediaWiki\\Session\\* testing
*/
/**
* BagOStuff with utility functions for MediaWiki\\Session\\* testing
*/
-class TestBagOStuff extends
\
CachedBagOStuff {
+class TestBagOStuff extends CachedBagOStuff {
public function __construct() {
public function __construct() {
- parent::__construct( new
\
HashBagOStuff );
+ parent::__construct( new HashBagOStuff );
}
/**
}
/**
@@
-51,7
+55,7
@@
class TestBagOStuff extends \CachedBagOStuff {
* @param array|mixed $blob Session metadata and data
*/
public function setRawSession( $id, $blob ) {
* @param array|mixed $blob Session metadata and data
*/
public function setRawSession( $id, $blob ) {
- $expiry =
\
RequestContext::getMain()->getConfig()->get( 'ObjectCacheSessionExpiry' );
+ $expiry = RequestContext::getMain()->getConfig()->get( 'ObjectCacheSessionExpiry' );
$this->set( $this->makeKey( 'MWSession', $id ), $blob, $expiry );
}
$this->set( $this->makeKey( 'MWSession', $id ), $blob, $expiry );
}