21 $this->assertEquals(
'bar',
$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'));
87 $loader->setTemplate(
'foo',
'bar');
89 $this->assertEquals(
'bar',
$loader->getSourceContext(
'foo')->getCode());
120 $this->addToAssertionCount(1);
testIsFreshWhenTemplateDoesNotExist()
Twig_Error_Loader
testGetCacheKeyWhenTemplateDoesNotExist()
Twig_Error_Loader
testGetCacheKeyWhenTemplateHasDuplicateContent()
Create styles array
The data for the language used.
testGetCacheKeyIsProtectedFromEdgeCollisions()
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
testGetSourceContextWhenTemplateDoesNotExist()
Twig_Error_Loader
Loads a template from an array.
testGetSourceWhenTemplateDoesNotExist()
legacy Twig_Error_Loader