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