You are here

public function ResponseTest::testToString in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Tests/ResponseTest.php \Symfony\Component\HttpFoundation\Tests\ResponseTest::testToString()

File

vendor/symfony/http-foundation/Tests/ResponseTest.php, line 28

Class

ResponseTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testToString() {
  $response = new Response();
  $response = explode("\r\n", $response);
  $this
    ->assertEquals('HTTP/1.0 200 OK', $response[0]);
  $this
    ->assertEquals('Cache-Control: no-cache', $response[1]);
}