public function testSetSignatureMethodThrowsExceptionForInvalidMethod() { $config = array('consumerKey' => '12345', 'consumerSecret' => '54321'); $consumer = new Zend_Oauth_Consumer($config); try { $consumer->setSignatureMethod('buckyball'); $this->fail('Invalid signature method accepted by setSignatureMethod'); } catch (Zend_Oauth_Exception $e) { } }