@@ -47,9 +47,9 @@ public function testCompile()
47
47
{
48
48
$ form = new NameExpression ('form ' , 0 );
49
49
$ resources = new ArrayExpression ([
50
- new ConstantExpression (0 , 0 ),
51
- new ConstantExpression ('tpl1 ' , 0 ),
52
50
new ConstantExpression (1 , 0 ),
51
+ new ConstantExpression ('tpl1 ' , 0 ),
52
+ new ConstantExpression (0 , 0 ),
53
53
new ConstantExpression ('tpl2 ' , 0 ),
54
54
], 0 );
55
55
@@ -62,7 +62,7 @@ public function testCompile()
62
62
63
63
$ this ->assertEquals (
64
64
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); ' ,
66
66
$ this ->getVariableGetter ('form ' )
67
67
),
68
68
trim ($ compiler ->compile ($ node )->getSource ())
@@ -72,7 +72,7 @@ public function testCompile()
72
72
73
73
$ this ->assertEquals (
74
74
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); ' ,
76
76
$ this ->getVariableGetter ('form ' )
77
77
),
78
78
trim ($ compiler ->compile ($ node )->getSource ())
0 commit comments