You are here

public function Twig_Tests_Loader_ArrayTest::testTemplateReference in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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

Twig_Tests_Loader_ArrayTest

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');
}