You are here

public function Twig_Tests_Loader_ChainTest::testGetSourceWhenTemplateDoesNotExist in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/twig/twig/test/Twig/Tests/Loader/ChainTest.php \Twig_Tests_Loader_ChainTest::testGetSourceWhenTemplateDoesNotExist()

@expectedException Twig_Error_Loader

File

vendor/twig/twig/test/Twig/Tests/Loader/ChainTest.php, line 28

Class

Twig_Tests_Loader_ChainTest

Code

public function testGetSourceWhenTemplateDoesNotExist() {
  $loader = new Twig_Loader_Chain(array());
  $loader
    ->getSource('foo');
}