From d306dabea349185801c6cd27ad3b0fb4b8cabe7b Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sat, 6 Aug 2011 08:35:41 +0200 Subject: [PATCH] fixed unit tests for previous merge --- test/Twig/Tests/Node/ForTest.php | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Twig/Tests/Node/ForTest.php b/test/Twig/Tests/Node/ForTest.php index 47b2283..098a11f 100644 --- a/test/Twig/Tests/Node/ForTest.php +++ b/test/Twig/Tests/Node/ForTest.php @@ -127,7 +127,7 @@ EOF $tests[] = array($node, <<getContext(\$context, 'values')); \$context['loop'] = array( 'parent' => \$context['_parent'], 'index0' => 0, @@ -143,7 +143,7 @@ if (is_array(\$context['_seq']) || (is_object(\$context['_seq']) && \$context['_ } foreach (\$context['_seq'] as \$context['k'] => \$context['v']) { if (true) { - echo (isset(\$context['foo']) ? \$context['foo'] : null); + echo \$this->getContext(\$context, 'foo'); ++\$context['loop']['index0']; ++\$context['loop']['index']; \$context['loop']['first'] = false; -- 1.7.2.5