public function Twig_Tests_Loader_ChainTest::testGetSource in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/twig/twig/test/Twig/Tests/Loader/ChainTest.php \Twig_Tests_Loader_ChainTest::testGetSource()
File
- vendor/
twig/ twig/ test/ Twig/ Tests/ Loader/ ChainTest.php, line 14
Class
Code
public function testGetSource() {
$loader = new Twig_Loader_Chain(array(
new Twig_Loader_Array(array(
'foo' => 'bar',
)),
new Twig_Loader_Array(array(
'foo' => 'foobar',
'bar' => 'foo',
)),
));
$this
->assertEquals('bar', $loader
->getSource('foo'));
$this
->assertEquals('foo', $loader
->getSource('bar'));
}