From: Fabien Potencier Date: Mon, 2 Jan 2012 12:14:06 +0000 (+0100) Subject: added a unit test X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=c03458483bcd4ddc483ef214f402435bf46455ac;p=web%2Fkonrad%2Ftwig.git added a unit test --- 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