public function ResponseTest::testNewInstanceWhenNewBody in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/guzzlehttp/psr7/tests/ResponseTest.php \GuzzleHttp\Tests\Psr7\ResponseTest::testNewInstanceWhenNewBody()
File
- vendor/
guzzlehttp/ psr7/ tests/ ResponseTest.php, line 88
Class
- ResponseTest
- @covers GuzzleHttp\Psr7\MessageTrait @covers GuzzleHttp\Psr7\Response
Namespace
GuzzleHttp\Tests\Psr7Code
public function testNewInstanceWhenNewBody() {
$r = new Response(200, [], 'foo');
$b2 = Psr7\stream_for('abc');
$this
->assertNotSame($r, $r
->withBody($b2));
}