public function testWithValue() { $response = new Response([], ['foo' => 'bar', 'baz' => 'qux']); $newResponse = $response->withValue(['buzz' => 'inga']); $this->assertNotSame($response, $newResponse); $this->assertEquals(['buzz' => 'inga'], $newResponse->getValue()); }