Ejemplo n.º 1
0
 /**
  * @test
  */
 public function response_contains_body()
 {
     $content = 'Some awesome content that is passed through.';
     $request = Request::create('/', 'POST', [], [], [], [], $content);
     $response = $this->adapter->send($request, '/');
     $this->assertEquals($content, $response->getContent());
 }
Ejemplo n.º 2
0
 /**
  * @test
  */
 public function adapter_returns_psr_response()
 {
     $response = $this->adapter->send(ServerRequestFactory::fromGlobals(), '/');
     $this->assertInstanceOf('Psr\\Http\\Message\\ResponseInterface', $response);
 }