You are here

public function Twig_Tests_Loader_ArrayTest::testGetSourceWhenTemplateDoesNotExist 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::testGetSourceWhenTemplateDoesNotExist()

@expectedException Twig_Error_Loader

File

vendor/twig/twig/test/Twig/Tests/Loader/ArrayTest.php, line 24

Class

Twig_Tests_Loader_ArrayTest

Code

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