/**
  * {@inhertidoc}
  * @see \InoOicClient\Oic\Token\ResponseFactoryInterface::createResponse()
  */
 public function createResponse(array $responseData)
 {
     $response = new Response();
     $response->fromArray($responseData);
     return $response;
 }
Example #2
0
 public function testToArray()
 {
     $expectedArray = array('status' => 200, 'headers' => array('host' => 'example.com'), 'body' => 'Test response');
     $response = Response::fromArray($expectedArray);
     $this->assertEquals($expectedArray, $response->toArray());
 }