示例#1
0
 /**
  * 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;
 }
示例#2
0
 public function testGetServerUrl()
 {
     $this->assertEquals("", $this->jenkins->getServerUrl());
     $jenkins = new Jenkins(new Http("http://blat", "foo", "bar"));
     $this->assertEquals("http://blat", $jenkins->getServerUrl());
 }