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