From 0e63abba76c6def0bb2b3aeb2ba6e7c2cace1bcf Mon Sep 17 00:00:00 2001 From: Arnaud Le Blanc Date: Sat, 12 Nov 2011 16:55:29 +0100 Subject: [PATCH] integration tests for interpolated strings --- test/Twig/Tests/Fixtures/expressions/strings.test | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) create mode 100644 test/Twig/Tests/Fixtures/expressions/strings.test diff --git a/test/Twig/Tests/Fixtures/expressions/strings.test b/test/Twig/Tests/Fixtures/expressions/strings.test new file mode 100644 index 0000000..a2bff10 --- /dev/null +++ b/test/Twig/Tests/Fixtures/expressions/strings.test @@ -0,0 +1,8 @@ +--TEST-- +Twig supports string interpolation +--TEMPLATE-- +{{ "foo #{"foo #{bar} baz"} baz" }} +--DATA-- +return array('bar' => 'BAR'); +--EXPECT-- +foo foo BAR baz baz -- 1.7.2.5