Exemple #1
0
 public function testSetBackupPathSetsThePathWhenTheDirectoryExistsAndIsWriteable()
 {
     $this->createTestPharAndKey();
     $updater = new Updater($this->tmp . '/old.phar');
     $updater->setBackupPath($this->tmp . '/backup.phar');
     $res = $updater->getBackupPath();
     $this->assertEquals($this->tmp . '/backup.phar', $res);
 }