@@ -47,9 +47,9 @@ public function testCompile()
4747 {
4848 $ form = new NameExpression ('form ' , 0 );
4949 $ resources = new ArrayExpression ([
50- new ConstantExpression (0 , 0 ),
51- new ConstantExpression ('tpl1 ' , 0 ),
5250 new ConstantExpression (1 , 0 ),
51+ new ConstantExpression ('tpl1 ' , 0 ),
52+ new ConstantExpression (0 , 0 ),
5353 new ConstantExpression ('tpl2 ' , 0 ),
5454 ], 0 );
5555
@@ -62,7 +62,7 @@ public function testCompile()
6262
6363 $ this ->assertEquals (
6464 sprintf (
65- '$this->env->getRuntime("Symfony \\\\Component \\\\Form \\\\FormRenderer")->setTheme(%s, [0 => "tpl1", 1 => "tpl2"], true); ' ,
65+ '$this->env->getRuntime("Symfony \\\\Component \\\\Form \\\\FormRenderer")->setTheme(%s, [1 => "tpl1", 0 => "tpl2"], true); ' ,
6666 $ this ->getVariableGetter ('form ' )
6767 ),
6868 trim ($ compiler ->compile ($ node )->getSource ())
@@ -72,7 +72,7 @@ public function testCompile()
7272
7373 $ this ->assertEquals (
7474 sprintf (
75- '$this->env->getRuntime("Symfony \\\\Component \\\\Form \\\\FormRenderer")->setTheme(%s, [0 => "tpl1", 1 => "tpl2"], false); ' ,
75+ '$this->env->getRuntime("Symfony \\\\Component \\\\Form \\\\FormRenderer")->setTheme(%s, [1 => "tpl1", 0 => "tpl2"], false); ' ,
7676 $ this ->getVariableGetter ('form ' )
7777 ),
7878 trim ($ compiler ->compile ($ node )->getSource ())
0 commit comments