made a optimization when a loop iterator also implements Countable
authorfabien <fabien@93ef8e89-cb99-4229-a87c-7fa0fa45744b>
Sun, 8 Nov 2009 08:22:36 +0000 (08:22 +0000)
committerfabien <fabien@93ef8e89-cb99-4229-a87c-7fa0fa45744b>
Sun, 8 Nov 2009 08:22:36 +0000 (08:22 +0000)
commit60158e16f1df308ae95572a3ef57bc81ccdb88be
tree648a37a5f1e46d8b0a5c0a3dffbf1fec6c8717af
parentf01728426f5d778cdd0cc4184f58435f1fb748aa
made a optimization when a loop iterator also implements Countable

git-svn-id: http://svn.twig-project.org/trunk@120 93ef8e89-cb99-4229-a87c-7fa0fa45744b
lib/Twig/runtime.php
test/fixtures/tags/for/objects.test
test/fixtures/tags/for/objects_countable.test [new file with mode: 0644]
test/unit/integrationTest.php