From: Fabien Potencier Date: Sat, 6 Aug 2011 06:35:41 +0000 (+0200) Subject: fixed unit tests for previous merge X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=d306dabea349185801c6cd27ad3b0fb4b8cabe7b;p=web%2Fkonrad%2Ftwig.git fixed unit tests for previous merge --- 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;