From: Tobias Schultze Date: Sun, 9 Dec 2012 16:21:53 +0000 (+0100) Subject: fix test that that would not fail if no exception is thrown X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=db744d5e51b8da166198ded733428e4ec0f18d42;p=web%2Fkonrad%2Ftwig.git fix test that that would not fail if no exception is thrown --- diff --git a/test/Twig/Tests/TemplateTest.php b/test/Twig/Tests/TemplateTest.php index 050c37f..26685a6 100644 --- a/test/Twig/Tests/TemplateTest.php +++ b/test/Twig/Tests/TemplateTest.php @@ -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()); } }