/** * @test */ public function testConstructorCanAcceptAllMessageParts() { $body = new Stream('php://memory'); $status = 302; $headers = ['location' => ['http://example.com/']]; $response = new Response($body, $status, $headers); $this->assertSame($body, $response->getBody()); $this->assertEquals(302, $response->getStatusCode()); $this->assertEquals($headers, $response->getHeaders()); }