public function ResponseTest::testDefaultContentType in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Tests/ResponseTest.php \Symfony\Component\HttpFoundation\Tests\ResponseTest::testDefaultContentType()
File
- vendor/
symfony/ http-foundation/ Tests/ ResponseTest.php, line 438
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testDefaultContentType() {
$headerMock = $this
->getMock('Symfony\\Component\\HttpFoundation\\ResponseHeaderBag', array(
'set',
));
$headerMock
->expects($this
->at(0))
->method('set')
->with('Content-Type', 'text/html');
$headerMock
->expects($this
->at(1))
->method('set')
->with('Content-Type', 'text/html; charset=UTF-8');
$response = new Response('foo');
$response->headers = $headerMock;
$response
->prepare(new Request());
}