public function Twig_Tests_ErrorTest::testErrorWithObjectFilename in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/twig/twig/test/Twig/Tests/ErrorTest.php \Twig_Tests_ErrorTest::testErrorWithObjectFilename()
File
- vendor/
twig/ twig/ test/ Twig/ Tests/ ErrorTest.php, line 14
Class
Code
public function testErrorWithObjectFilename() {
$error = new Twig_Error('foo');
$error
->setTemplateFile(new SplFileInfo(__FILE__));
$this
->assertContains('test' . DIRECTORY_SEPARATOR . 'Twig' . DIRECTORY_SEPARATOR . 'Tests' . DIRECTORY_SEPARATOR . 'ErrorTest.php', $error
->getMessage());
}