示例#1
0
 public function testSetLocalUrlThrowsExceptionForInvalidUrl()
 {
     $config = array('consumerKey' => '12345', 'consumerSecret' => '54321');
     $consumer = new Zend_Oauth_Consumer($config);
     try {
         $consumer->setLocalUrl('buckyball');
         $this->fail('Invalid url accepted by setLocalUrl');
     } catch (Zend_Oauth_Exception $e) {
     }
 }