/** * @covers SimplyDO\OAuthResponse::setResponse * @covers SimplyDO\OAuthResponse::getJsonResponse */ public function testShouldSetAndGetJsonResponse() { $json = json_encode(['key' => 'value']); $this->model->setResponse($json); $response = $this->model->getJsonResponse(); $this->assertSame($json, $response); $this->assertFalse(is_array($response)); $this->assertArrayHasKey('key', json_decode($response, 1)); }