You are here

public function EsiTest::testMultilineEsiRemoveTagsAreRemoved in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Tests/HttpCache/EsiTest.php \Symfony\Component\HttpKernel\Tests\HttpCache\EsiTest::testMultilineEsiRemoveTagsAreRemoved()

File

vendor/symfony/http-kernel/Tests/HttpCache/EsiTest.php, line 95

Class

EsiTest

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

public function testMultilineEsiRemoveTagsAreRemoved() {
  $esi = new Esi();
  $request = Request::create('/');
  $response = new Response('<esi:remove> <a href="http://www.example.com">www.example.com</a> </esi:remove> Keep this' . "<esi:remove>\n <a>www.example.com</a> </esi:remove> And this");
  $esi
    ->process($request, $response);
  $this
    ->assertEquals(' Keep this And this', $response
    ->getContent());
}