/** * Returns full URL with server info, instead of just path (which is stored in $url) * @return string */ public function getUrl() { return $this->conn->getServerUrl() . $this->url; }
public function testGetServerUrl() { $this->assertEquals("", $this->jenkins->getServerUrl()); $jenkins = new Jenkins(new Http("http://blat", "foo", "bar")); $this->assertEquals("http://blat", $jenkins->getServerUrl()); }