private function getLastRelease($config) { $currentPath = Utils::joinPaths($config['document_root'], self::CURRENT_DIR); try { $releasesStr = $this->remoteCommand("readlink {$currentPath}"); if ($releasesStr != '') { return $releasesStr; } return null; } catch (\RuntimeException $e) { return null; } }
/** * @test */ public function test4() { $this->assertEquals('first/second', Utils::joinPaths('first', 'second')); }