public function ResponseTest::testToString

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/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]);
}