|
|
|
@ -150,7 +150,8 @@ class FileCacheTest extends TestCache {
|
|
|
|
->method('filemtime')
|
|
|
|
->method('filemtime')
|
|
|
|
->willReturn(100);
|
|
|
|
->willReturn(100);
|
|
|
|
$mockStorage->expects($this->atLeastOnce())
|
|
|
|
$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('key1', 'value1');
|
|
|
|
$this->instance->set('key2', 'value2');
|
|
|
|
$this->instance->set('key2', 'value2');
|
|
|
|
|