mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-16 12:26:30 +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 {
|
try {
|
||||||
$template->render($context);
|
$template->render($context);
|
||||||
|
$this->fail('Accessing an invalid item should throw an exception.');
|
||||||
} catch (Twig_Error_Runtime $e) {
|
} 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