21 $this->assertEquals(
'bar', $loader->getSource(
'foo'));
32 $loader->getSource(
'foo');
42 $loader->getSourceContext(
'foo');
49 $this->assertEquals(
'foo:bar', $loader->getCacheKey(
'foo'));
59 $this->assertEquals(
'foo:bar', $loader->getCacheKey(
'foo'));
60 $this->assertEquals(
'baz:bar', $loader->getCacheKey(
'baz'));
70 $this->assertEquals(
'foo__:bar', $loader->getCacheKey(
'foo__'));
71 $this->assertEquals(
'foo:__bar', $loader->getCacheKey(
'foo'));
81 $loader->getCacheKey(
'foo');
87 $loader->setTemplate(
'foo',
'bar');
89 $this->assertEquals(
'bar', $loader->getSourceContext(
'foo')->getCode());
95 $this->assertTrue($loader->isFresh(
'foo', time()));
105 $loader->isFresh(
'foo', time());
113 $loader->getCacheKey(
$name);
114 $loader->getSourceContext(
$name);
115 $loader->isFresh(
$name, time());
116 $loader->setTemplate(
$name,
'foo:bar');
120 $this->addToAssertionCount(1);
testIsFreshWhenTemplateDoesNotExist()
Twig_Error_Loader
testGetCacheKeyWhenTemplateDoesNotExist()
Twig_Error_Loader
testGetCacheKeyWhenTemplateHasDuplicateContent()
testGetCacheKeyIsProtectedFromEdgeCollisions()
testGetSourceContextWhenTemplateDoesNotExist()
Twig_Error_Loader
Loads a template from an array.
testGetSourceWhenTemplateDoesNotExist()
legacy Twig_Error_Loader