public function ResponseTest::testMagicToString in Zircon Profile 8
Same name and namespace in other branches
- 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
Namespace
Symfony\Component\BrowserKit\TestsCode
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');
}