/** * @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()); }
/** * @test */ public function adapter_returns_psr_response() { $response = $this->adapter->send(ServerRequestFactory::fromGlobals(), '/'); $this->assertInstanceOf('Psr\\Http\\Message\\ResponseInterface', $response); }