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: update MemcachedPeclBagOStuff for pecl memcached 3.0.0
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
libs
/
objectcache
/
BagOStuffTest.php
diff --git
a/tests/phpunit/includes/libs/objectcache/BagOStuffTest.php
b/tests/phpunit/includes/libs/objectcache/BagOStuffTest.php
index
f2fe07d
..
10fba83
100644
(file)
--- a/
tests/phpunit/includes/libs/objectcache/BagOStuffTest.php
+++ b/
tests/phpunit/includes/libs/objectcache/BagOStuffTest.php
@@
-92,12
+92,12
@@
class BagOStuffTest extends MediaWikiTestCase {
// merge on non-existing value
$merged = $this->cache->merge( $key, $callback, 0 );
$this->assertTrue( $merged );
// merge on non-existing value
$merged = $this->cache->merge( $key, $callback, 0 );
$this->assertTrue( $merged );
- $this->assertEquals(
$this->cache->get( $key ), 'merged'
);
+ $this->assertEquals(
'merged', $this->cache->get( $key )
);
// merge on existing value
$merged = $this->cache->merge( $key, $callback, 0 );
$this->assertTrue( $merged );
// merge on existing value
$merged = $this->cache->merge( $key, $callback, 0 );
$this->assertTrue( $merged );
- $this->assertEquals(
$this->cache->get( $key ), 'mergedmerged'
);
+ $this->assertEquals(
'mergedmerged', $this->cache->get( $key )
);
/*
* Test concurrent merges by forking this process, if:
/*
* Test concurrent merges by forking this process, if:
@@
-163,6
+163,9
@@
class BagOStuffTest extends MediaWikiTestCase {
$this->assertTrue( $this->cache->add( $key, 'test' ) );
}
$this->assertTrue( $this->cache->add( $key, 'test' ) );
}
+ /**
+ * @covers BagOStuff::get
+ */
public function testGet() {
$value = [ 'this' => 'is', 'a' => 'test' ];
public function testGet() {
$value = [ 'this' => 'is', 'a' => 'test' ];