public function FunctionsTest::testConvertsResponsesToStrings in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/psr7/tests/FunctionsTest.php \GuzzleHttp\Tests\Psr7\FunctionsTest::testConvertsResponsesToStrings()
File
- vendor/
guzzlehttp/ psr7/ tests/ FunctionsTest.php, line 443
Class
Namespace
GuzzleHttp\Tests\Psr7Code
public function testConvertsResponsesToStrings() {
$response = new Psr7\Response(200, [
'Baz' => 'bar',
'Qux' => ' ipsum',
], 'hello', '1.0', 'FOO');
$this
->assertEquals("HTTP/1.0 200 FOO\r\nBaz: bar\r\nQux: ipsum\r\n\r\nhello", Psr7\str($response));
}