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