public function EsiTest::testRenderIncludeTag in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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
Namespace
Symfony\Component\HttpKernel\Tests\HttpCacheCode
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'));
}