You are here

public function Twig_Tests_ErrorTest::testErrorWithArrayFilename in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/twig/twig/test/Twig/Tests/ErrorTest.php \Twig_Tests_ErrorTest::testErrorWithArrayFilename()

File

vendor/twig/twig/test/Twig/Tests/ErrorTest.php, line 22

Class

Twig_Tests_ErrorTest

Code

public function testErrorWithArrayFilename() {
  $error = new Twig_Error('foo');
  $error
    ->setTemplateFile(array(
    'foo' => 'bar',
  ));
  $this
    ->assertEquals('foo in {"foo":"bar"}', $error
    ->getMessage());
}