public function Twig_Tests_Loader_ArrayTest::testTemplateReference in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/test/Twig/Tests/Loader/ArrayTest.php \Twig_Tests_Loader_ArrayTest::testTemplateReference()
File
- vendor/
twig/ twig/ test/ Twig/ Tests/ Loader/ ArrayTest.php, line 72
Class
Code
public function testTemplateReference() {
$name = new Twig_Test_Loader_TemplateReference('foo');
$loader = new Twig_Loader_Array(array(
'foo' => 'bar',
));
$loader
->getCacheKey($name);
$loader
->getSource($name);
$loader
->isFresh($name, time());
$loader
->setTemplate($name, 'foobar');
}