public function Twig_Tests_ErrorTest::testErrorWithArrayFilename

File

drupal/core/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());
}