Ejemplo n.º 1
0
 public function testBadUri()
 {
     if (!$this->_remoteEnabled) {
         return;
     }
     try {
         $http = new Zend_Http_Client('http://baduri.org');
         $http->setTimeout(1);
         $response = $http->get();
     } catch (Exception $e) {
         $this->assertRegExp('/^Unable to Connect to (.*)/', $e->getMessage());
     }
 }