/** * @return void */ public function testSaveDataNoFile() { $this->file->expects($this->any())->method('isExists')->will($this->returnValue(false)); $this->file->expects($this->once())->method('saveData'); $step = $this->getMock('\\Migration\\Step\\Map', [], [], '', false); $this->progress->saveResult($step, 'integrity', 'true'); }
/** * @param mixed|null $object * @return void */ public function reset($object = null) { if (empty($object)) { $this->file->clearLockFile(); return; } else { $data = $this->file->getData(); if (!empty($data[$this->getName($object)])) { unset($data[$this->getName($object)]); $this->file->saveData($data); } } }