projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
9ea16ec
)
fix test that that would not fail if no exception is thrown
author
Tobias Schultze
<webmaster@tubo-world.de>
Sun, 9 Dec 2012 16:21:53 +0000 (17:21 +0100)
committer
Tobias Schultze
<webmaster@tubo-world.de>
Fri, 15 Mar 2013 11:00:24 +0000 (12:00 +0100)
test/Twig/Tests/TemplateTest.php
patch
|
blob
|
history
diff --git
a/test/Twig/Tests/TemplateTest.php
b/test/Twig/Tests/TemplateTest.php
index
050c37f
..
26685a6
100644
(file)
--- 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());
}
}