From c03458483bcd4ddc483ef214f402435bf46455ac Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Mon, 2 Jan 2012 13:14:06 +0100 Subject: [PATCH] added a unit test --- test/Twig/Tests/Fixtures/filters/join.test | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/Twig/Tests/Fixtures/filters/join.test b/test/Twig/Tests/Fixtures/filters/join.test index 244fa10..8feef63 100644 --- a/test/Twig/Tests/Fixtures/filters/join.test +++ b/test/Twig/Tests/Fixtures/filters/join.test @@ -3,8 +3,10 @@ --TEMPLATE-- {{ ["foo", "bar"]|join(', ') }} {{ foo|join(', ') }} +{{ bar|join(', ') }} --DATA-- -return array('foo' => new Foo()) +return array('foo' => new Foo(), 'bar' => new ArrayObject(array(3, 4))) --EXPECT-- foo, bar -1, 2 \ No newline at end of file +1, 2 +3, 4 -- 1.7.2.5