You are here

public function Twig_Tests_Loader_FilesystemTest::testArrayInheritance in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/test/Twig/Tests/Loader/FilesystemTest.php \Twig_Tests_Loader_FilesystemTest::testArrayInheritance()

@dataProvider getArrayInheritanceTests

Parameters

$templateName string Template name with array inheritance:

File

vendor/twig/twig/test/Twig/Tests/Loader/FilesystemTest.php, line 165

Class

Twig_Tests_Loader_FilesystemTest

Code

public function testArrayInheritance($templateName) {
  $loader = new Twig_Loader_Filesystem(array());
  $loader
    ->addPath(dirname(__FILE__) . '/Fixtures/inheritance');
  $twig = new Twig_Environment($loader);
  $template = $twig
    ->loadTemplate($templateName);
  $this
    ->assertSame('VALID Child', $template
    ->renderBlock('body', array()));
}