/** * @expectedException Zend_Service_Twitter_Exception */ public function testOverloadingGetShouldthrowExceptionWithInvalidFunction() { $twitter = new Zend_Service_Twitter(); $return = $twitter->foo(); }