static function test9() { require '../OauthPanda.class.php'; $foo = new OauthPanda(array('exception_handling' => 'throw', 'request_client' => new YahooCurlWrapper(), 'oauth_client' => new StandardOauthWrapper('../OAuth.php'), 'consumer_key' => YAHOO_OAUTH_CONSUMER_KEY, 'consumer_secret' => YAHOO_OAUTH_CONSUMER_SECRET)); try { //calling BAR() would throw error, but deliberately setting method overrides $foo->set(array('request_client' => new YahooCurlWrapper('../YahooCurl.class.php')))->BAR(array('request_method' => 'GET', 'url' => 'https://api.login.yahoo.com/oauth/v2/get_request_token')); TestUtils::respond(__FUNCTION__, 'pass'); } catch (Exception $e) { TestUtils::assertTrue(false, 'deliberately setting request method should not throw exception<p/>' . print_r($e, true)); } }