public function testEffectiveUrl() { $this->assertSame($this->effectiveUrl, $this->httpResponse->getEffectiveUrl()); }
public function testIsValidWithInvalidResponse() { $this->httpResponse->expects($this->any())->method('getBody')->will($this->returnValue('{"errors":"foo"}')); $this->oauthResponse = new OAuthResponse($this->httpResponse); $this->assertFalse($this->oauthResponse->isValid()); }
/** * Gets the rate limit reset. * * @return string The rate limit reset. */ public function getRateLimitReset() { return $this->httpResponse->getHeader('X-Rate-Limit-Reset'); }
/** * Parses & normalizes the Time Zone API response * * @param $response * @return array */ protected function parse(HttpResponse $response) { return json_decode($response->getBody(), true); }