You are here

public function FunctionsTest::testConvertsResponsesToStrings in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/psr7/tests/FunctionsTest.php \GuzzleHttp\Tests\Psr7\FunctionsTest::testConvertsResponsesToStrings()

File

vendor/guzzlehttp/psr7/tests/FunctionsTest.php, line 443

Class

FunctionsTest

Namespace

GuzzleHttp\Tests\Psr7

Code

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));
}