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 "Type hint against LinkTarget in WatchedItemStore"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
libs
/
objectcache
/
CachedBagOStuffTest.php
diff --git
a/tests/phpunit/includes/libs/objectcache/CachedBagOStuffTest.php
b/tests/phpunit/includes/libs/objectcache/CachedBagOStuffTest.php
index
f953319
..
8c53873
100644
(file)
--- a/
tests/phpunit/includes/libs/objectcache/CachedBagOStuffTest.php
+++ b/
tests/phpunit/includes/libs/objectcache/CachedBagOStuffTest.php
@@
-125,6
+125,12
@@
class CachedBagOStuffTest extends PHPUnit\Framework\TestCase {
* @covers CachedBagOStuff::makeKey
*/
public function testMakeKey() {
* @covers CachedBagOStuff::makeKey
*/
public function testMakeKey() {
+ if ( defined( 'HHVM_VERSION' ) ) {
+ // This works fine on HHVM (and verified by integration tests), but due to
+ // a bug in HHVM's Reflection, PHPUnit 4 fails to create a mock (T228563)
+ $this->markTestSkipped( 'HHVM Reflection buggy' );
+ }
+
$backend = $this->getMockBuilder( HashBagOStuff::class )
->setMethods( [ 'makeKey' ] )
->getMock();
$backend = $this->getMockBuilder( HashBagOStuff::class )
->setMethods( [ 'makeKey' ] )
->getMock();
@@
-145,6
+151,10
@@
class CachedBagOStuffTest extends PHPUnit\Framework\TestCase {
* @covers CachedBagOStuff::makeGlobalKey
*/
public function testMakeGlobalKey() {
* @covers CachedBagOStuff::makeGlobalKey
*/
public function testMakeGlobalKey() {
+ if ( defined( 'HHVM_VERSION' ) ) {
+ $this->markTestSkipped( 'HHVM Reflection buggy' );
+ }
+
$backend = $this->getMockBuilder( HashBagOStuff::class )
->setMethods( [ 'makeGlobalKey' ] )
->getMock();
$backend = $this->getMockBuilder( HashBagOStuff::class )
->setMethods( [ 'makeGlobalKey' ] )
->getMock();