Ejemplo n.º 1
0
 public function testSetRequestSchemeThrowsExceptionForInvalidMethod()
 {
     $config = array('consumerKey' => '12345', 'consumerSecret' => '54321');
     $consumer = new Zend_Oauth_Consumer($config);
     try {
         $consumer->setRequestScheme('buckyball');
         $this->fail('Invalid request scheme accepted by setRequestScheme');
     } catch (Zend_Oauth_Exception $e) {
     }
 }