You are here

public function Twig_Tests_ErrorTest::testErrorWithObjectFilename in Zircon Profile 8

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

File

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

Class

Twig_Tests_ErrorTest

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