public function testCwdIsNotChangedAfterSettingRelativeBase() { $cwd = getcwd(); $dir = 'tests'; $relativeTo = realpath(__DIR__ . '/../../../'); $this->zipper->setRelativePathAsBase($dir, $relativeTo); $this->zipper->add('samples'); $this->assertEquals($cwd, getcwd()); }