diff --git a/tests/lib/Cache/FileCacheTest.php b/tests/lib/Cache/FileCacheTest.php index be27ff04f09..9ba19553cf1 100644 --- a/tests/lib/Cache/FileCacheTest.php +++ b/tests/lib/Cache/FileCacheTest.php @@ -150,7 +150,8 @@ class FileCacheTest extends TestCache { ->method('filemtime') ->willReturn(100); $mockStorage->expects($this->atLeastOnce()) - ->method('unlink')->willReturnOnConsecutiveCalls($this->throwException($testException), $this->returnValue(true)); + ->method('unlink') + ->willReturnOnConsecutiveCalls($this->throwException($testException), true); $this->instance->set('key1', 'value1'); $this->instance->set('key2', 'value2');