public function SsiTest::testProcessDoesNothingIfContentTypeIsNotHtml in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Tests/HttpCache/SsiTest.php \Symfony\Component\HttpKernel\Tests\HttpCache\SsiTest::testProcessDoesNothingIfContentTypeIsNotHtml()
File
- vendor/
symfony/ http-kernel/ Tests/ HttpCache/ SsiTest.php, line 82
Class
Namespace
Symfony\Component\HttpKernel\Tests\HttpCacheCode
public function testProcessDoesNothingIfContentTypeIsNotHtml() {
$ssi = new Ssi();
$request = Request::create('/');
$response = new Response();
$response->headers
->set('Content-Type', 'text/plain');
$ssi
->process($request, $response);
$this
->assertFalse($response->headers
->has('x-body-eval'));
}