From: Fabien Potencier Date: Mon, 10 Jan 2011 18:09:08 +0000 (+0100) Subject: added a test for previous commit X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=539e001d0e74b7e9daeffd9e0b158d0e8d86e4ae;p=web%2Fkonrad%2Ftwig.git added a test for previous commit --- diff --git a/test/Twig/Tests/Fixtures/expressions/ternary_operator.test b/test/Twig/Tests/Fixtures/expressions/ternary_operator.test index d070824..0e6fa96 100644 --- a/test/Twig/Tests/Fixtures/expressions/ternary_operator.test +++ b/test/Twig/Tests/Fixtures/expressions/ternary_operator.test @@ -6,11 +6,13 @@ Twig supports the ternary operator {{ 0 ? 'YES' : (1 ? 'YES1' : 'NO1') }} {{ 0 ? 'YES' : (0 ? 'YES1' : 'NO1') }} {{ 1 == 1 ? 'foo
':'' }} +{{ foo ~ (bar ? ('-' ~ bar) : '') }} --DATA-- -return array() +return array('foo' => 'foo', 'bar' => 'bar') --EXPECT-- YES NO YES1 NO1 foo
+foo-bar