public function testSetRestorePathSetsThePathWhenTheDirectoryExistsAndIsWriteable() { $this->createTestPharAndKey(); $updater = new Updater($this->tmp . '/old.phar'); $updater->setRestorePath($this->tmp . '/backup.phar'); $res = $updater->getRestorePath(); $this->assertEquals($this->tmp . '/backup.phar', $res); }