fix test that that would not fail if no exception is thrown

This commit is contained in:
Tobias Schultze
2012-12-09 17:21:53 +01:00
parent 9ea16ec643
commit db744d5e51
+2 -1
View File
@@ -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());
}
}