public function getUri($as_string = false)
{
if ($as_string && $this->uri instanceof Zend_Uri_Http) {
return $this->uri->__toString();
} else {
return $this->uri;
}
}
/** * Test we can SET and GET a URI as object * */ public function testSetGetUriObject() { $uriobj = Zend_Uri::factory('http://www.zend.com:80/'); $this->client->setUri($uriobj); $uri = $this->client->getUri(); $this->assertTrue($uri instanceof Zend_Uri_Http, 'Returned value is not a Uri object as expected'); $this->assertEquals($uri, $uriobj, 'Returned object is not the excepted Uri object'); }