Ejemplo n.º 1
0
 protected function getCacheMock($type = 'good')
 {
     $good = ['successfiles' => 1, 'failedfiles' => 0];
     $bad = ['successfiles' => 0, 'failedfiles' => 1, 'failed' => ['test.txt']];
     $cache = parent::getCacheMock();
     $cache->expects($this->once())->method('doFlush')->will($this->returnValue(${$type}));
     return $cache;
 }
Ejemplo n.º 2
0
 protected function getCacheMock($path = null, $flushResult = true)
 {
     $cache = parent::getCacheMock($path);
     $cache->expects($this->once())->method('flushAll')->will($this->returnValue($flushResult));
     return $cache;
 }