Exemplo n.º 1
0
 public function testQueryCanBeReplaced()
 {
     $newQuery = array('search' => 'age', 'format' => 'json', 'exclude' => 'nothing');
     $url = new Url();
     $url->setNewQuery($newQuery);
     $this->assertEquals('http://www.google.com/?search=age&format=json&exclude=nothing', strval($url));
 }
Exemplo n.º 2
0
 public function getBaseUrl()
 {
     $url = new Url();
     $url->setNewQuery(array());
     return $url;
 }