You are here

public function EsiTest::testRenderIncludeTag 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::testRenderIncludeTag()

File

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

Class

EsiTest

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

public function testRenderIncludeTag() {
  $esi = new Esi();
  $this
    ->assertEquals('<esi:include src="/" onerror="continue" alt="/alt" />', $esi
    ->renderIncludeTag('/', '/alt', true));
  $this
    ->assertEquals('<esi:include src="/" alt="/alt" />', $esi
    ->renderIncludeTag('/', '/alt', false));
  $this
    ->assertEquals('<esi:include src="/" onerror="continue" />', $esi
    ->renderIncludeTag('/'));
  $this
    ->assertEquals('<esi:comment text="some comment" />' . "\n" . '<esi:include src="/" onerror="continue" alt="/alt" />', $esi
    ->renderIncludeTag('/', '/alt', true, 'some comment'));
}