Exemplo n.º 1
0
 public function testUri()
 {
     $client = new App_Rest_Client('http://framework.zend.com/rest/');
     $uri = $client->getUri();
     $this->assertTrue($uri instanceof Zend_Uri_Http);
     $this->assertEquals('http://framework.zend.com/rest/', $uri->getUri());
     $client->setUri(Zend_Uri::factory('http://framework.zend.com/soap/'));
     $uri = $client->getUri();
     $this->assertTrue($uri instanceof Zend_Uri_Http);
     $this->assertEquals('http://framework.zend.com/soap/', $uri->getUri());
     $client->setUri('http://framework.zend.com/xmlrpc/');
     $uri = $client->getUri();
     $this->assertTrue($uri instanceof Zend_Uri_Http);
     $this->assertEquals('http://framework.zend.com/xmlrpc/', $uri->getUri());
 }