From db744d5e51b8da166198ded733428e4ec0f18d42 Mon Sep 17 00:00:00 2001 From: Tobias Schultze Date: Sun, 9 Dec 2012 17:21:53 +0100 Subject: [PATCH] fix test that that would not fail if no exception is thrown --- test/Twig/Tests/TemplateTest.php | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) 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()); } } -- 1.7.2.5