public function EsiTest::testCommentTagsAreRemoved in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Tests/HttpCache/EsiTest.php \Symfony\Component\HttpKernel\Tests\HttpCache\EsiTest::testCommentTagsAreRemoved()
File
- vendor/
symfony/ http-kernel/ Tests/ HttpCache/ EsiTest.php, line 106
Class
Namespace
Symfony\Component\HttpKernel\Tests\HttpCacheCode
public function testCommentTagsAreRemoved() {
$esi = new Esi();
$request = Request::create('/');
$response = new Response('<esi:comment text="some comment >" /> Keep this');
$esi
->process($request, $response);
$this
->assertEquals(' Keep this', $response
->getContent());
}