Exemple #1
0
 /**
  * @return AkUrl
  */
 public function createUrl($path, $query = '')
 {
     $Request = $this->partialMock('AkRequest', array('getRelativeUrlRoot', 'getProtocol', 'getHostWithPort'), array('getRelativeUrlRoot' => '', 'getProtocol' => 'http', 'getHostWithPort' => 'localhost'));
     $url = new AkUrl($path, $query);
     $url->setOptions(array('relative_url_root' => '', 'protocol' => 'http', 'host' => 'localhost'));
     return $this->Url = $url;
 }
Exemple #2
0
 /**
  * @return AkUrl
  */
 function createUrl($path, $query = '')
 {
     $Request = $this->getMock('AkRequest', array('getRelativeUrlRoot', 'getProtocol', 'getHostWithPort'));
     $Request->expects($this->any())->method('getRelativeUrlRoot')->will($this->returnValue(''));
     $Request->expects($this->any())->method('getProtocol')->will($this->returnValue('http'));
     $Request->expects($this->any())->method('getHostWithPort')->will($this->returnValue('localhost'));
     $url = new AkUrl($path, $query);
     $url->setOptions(array('relative_url_root' => '', 'protocol' => 'http', 'host' => 'localhost'));
     return $this->Url = $url;
 }
Exemple #3
0
 /**
  * @return AkUrl
  */
 function createUrl($path, $query = '')
 {
     $url = new AkUrl($path, $query);
     $url->setOptions(array('relative_url_root' => '', 'protocol' => 'http', 'host' => 'localhost'));
     return $this->Url = $url;
 }