コード例 #1
0
 /**
  * @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');
 }
コード例 #2
0
 /**
  * @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);
         }
     }
 }