You are here

public function ResponseTest::testMagicToString in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/browser-kit/Tests/ResponseTest.php \Symfony\Component\BrowserKit\Tests\ResponseTest::testMagicToString()

File

vendor/symfony/browser-kit/Tests/ResponseTest.php, line 53

Class

ResponseTest

Namespace

Symfony\Component\BrowserKit\Tests

Code

public function testMagicToString() {
  $response = new Response('foo', 304, array(
    'foo' => 'bar',
  ));
  $this
    ->assertEquals("foo: bar\n\nfoo", $response
    ->__toString(), '->__toString() returns the headers and the content as a string');
}