From 539e001d0e74b7e9daeffd9e0b158d0e8d86e4ae Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Mon, 10 Jan 2011 19:09:08 +0100 Subject: [PATCH] added a test for previous commit --- .../Fixtures/expressions/ternary_operator.test | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) 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 -- 1.7.2.5