/** * @param OAuthResponse $response * @return array */ public function handleError(OAuthResponse $response) { return ['error' => $response->getCode(), 'error_message' => $response->getError(), 'raw_response' => $response->getResponse()]; }
/** * @covers SimplyDO\OAuthResponse::setCode * @covers SimplyDO\OAuthResponse::getCode */ public function testShouldGetAndSetCode() { $this->model->setCode(200); $this->assertEquals(200, $this->model->getCode()); }