mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 11:56:50 +00:00
fix test that that would not fail if no exception is thrown
This commit is contained in:
@@ -34,8 +34,9 @@ class Twig_Tests_TemplateTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
try {
|
||||
$template->render($context);
|
||||
$this->fail('Accessing an invalid item should throw an exception.');
|
||||
} catch (Twig_Error_Runtime $e) {
|
||||
$this->assertEquals(sprintf($message, $name), $e->getMessage());
|
||||
$this->assertSame(sprintf($message, $name), $e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user