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); }