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
Merge "Revert "selenium: add new message banner test to user spec""
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
objectcache
/
MemcachedBagOStuffTest.php
diff --git
a/tests/phpunit/includes/objectcache/MemcachedBagOStuffTest.php
b/tests/phpunit/includes/objectcache/MemcachedBagOStuffTest.php
index
9cb2f94
..
432754b
100644
(file)
--- a/
tests/phpunit/includes/objectcache/MemcachedBagOStuffTest.php
+++ b/
tests/phpunit/includes/objectcache/MemcachedBagOStuffTest.php
@@
-70,6
+70,7
@@
class MemcachedBagOStuffTest extends MediaWikiTestCase {
/**
* @dataProvider validKeyProvider
/**
* @dataProvider validKeyProvider
+ * @covers MemcachedBagOStuff::validateKeyEncoding
*/
public function testValidateKeyEncoding( $key ) {
$this->assertSame( $key, $this->cache->validateKeyEncoding( $key ) );
*/
public function testValidateKeyEncoding( $key ) {
$this->assertSame( $key, $this->cache->validateKeyEncoding( $key ) );
@@
-86,9
+87,10
@@
class MemcachedBagOStuffTest extends MediaWikiTestCase {
/**
* @dataProvider invalidKeyProvider
/**
* @dataProvider invalidKeyProvider
+ * @covers MemcachedBagOStuff::validateKeyEncoding
*/
public function testValidateKeyEncodingThrowsException( $key ) {
*/
public function testValidateKeyEncodingThrowsException( $key ) {
- $this->setExpectedException(
'Exception'
);
+ $this->setExpectedException(
Exception::class
);
$this->cache->validateKeyEncoding( $key );
}
$this->cache->validateKeyEncoding( $key );
}