From: Fabien Potencier Date: Sun, 27 Mar 2011 16:13:59 +0000 (+0200) Subject: added a test X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=7d78d5f7a8c039059046d6c5e1d7f66765bd91c7;p=web%2Fkonrad%2Ftwig.git added a test --- diff --git a/test/Twig/Tests/Fixtures/filters/default.test b/test/Twig/Tests/Fixtures/filters/default.test index ad1a338..dd3b998 100644 --- a/test/Twig/Tests/Fixtures/filters/default.test +++ b/test/Twig/Tests/Fixtures/filters/default.test @@ -5,6 +5,7 @@ {{ bar|default('foo') }} {{ not_defined|default('bar') }} {{ 'a' ~ foo|default('b') }} +{{ 0|default('bar') }} --DATA-- return array('foo' => null, 'bar' => 'bar') --EXPECT-- @@ -12,3 +13,4 @@ bar bar bar ab +0