@@ -27,7 +27,7 @@ public function testCompileWidget()
27
27
28
28
$ this ->assertEquals (
29
29
sprintf (
30
- '$this->env->getExtension ( \'Symfony\Bridge\Twig\Extension\FormExtension \')->renderer ->searchAndRenderBlock(%s, \'widget \') ' ,
30
+ '$this->env->getRuntime ( \'Symfony\Bridge\Twig\Form\TwigRenderer \')->searchAndRenderBlock(%s, \'widget \') ' ,
31
31
$ this ->getVariableGetter ('form ' )
32
32
),
33
33
trim ($ compiler ->compile ($ node )->getSource ())
@@ -50,7 +50,7 @@ public function testCompileWidgetWithVariables()
50
50
51
51
$ this ->assertEquals (
52
52
sprintf (
53
- '$this->env->getExtension ( \'Symfony\Bridge\Twig\Extension\FormExtension \')->renderer ->searchAndRenderBlock(%s, \'widget \', array("foo" => "bar")) ' ,
53
+ '$this->env->getRuntime ( \'Symfony\Bridge\Twig\Form\TwigRenderer \')->searchAndRenderBlock(%s, \'widget \', array("foo" => "bar")) ' ,
54
54
$ this ->getVariableGetter ('form ' )
55
55
),
56
56
trim ($ compiler ->compile ($ node )->getSource ())
@@ -70,7 +70,7 @@ public function testCompileLabelWithLabel()
70
70
71
71
$ this ->assertEquals (
72
72
sprintf (
73
- '$this->env->getExtension ( \'Symfony\Bridge\Twig\Extension\FormExtension \')->renderer ->searchAndRenderBlock(%s, \'label \', array("label" => "my label")) ' ,
73
+ '$this->env->getRuntime ( \'Symfony\Bridge\Twig\Form\TwigRenderer \')->searchAndRenderBlock(%s, \'label \', array("label" => "my label")) ' ,
74
74
$ this ->getVariableGetter ('form ' )
75
75
),
76
76
trim ($ compiler ->compile ($ node )->getSource ())
@@ -92,7 +92,7 @@ public function testCompileLabelWithNullLabel()
92
92
// Otherwise the default label is overwritten with null.
93
93
$ this ->assertEquals (
94
94
sprintf (
95
- '$this->env->getExtension ( \'Symfony\Bridge\Twig\Extension\FormExtension \')->renderer ->searchAndRenderBlock(%s, \'label \') ' ,
95
+ '$this->env->getRuntime ( \'Symfony\Bridge\Twig\Form\TwigRenderer \')->searchAndRenderBlock(%s, \'label \') ' ,
96
96
$ this ->getVariableGetter ('form ' )
97
97
),
98
98
trim ($ compiler ->compile ($ node )->getSource ())
@@ -114,7 +114,7 @@ public function testCompileLabelWithEmptyStringLabel()
114
114
// Otherwise the default label is overwritten with null.
115
115
$ this ->assertEquals (
116
116
sprintf (
117
- '$this->env->getExtension ( \'Symfony\Bridge\Twig\Extension\FormExtension \')->renderer ->searchAndRenderBlock(%s, \'label \') ' ,
117
+ '$this->env->getRuntime ( \'Symfony\Bridge\Twig\Form\TwigRenderer \')->searchAndRenderBlock(%s, \'label \') ' ,
118
118
$ this ->getVariableGetter ('form ' )
119
119
),
120
120
trim ($ compiler ->compile ($ node )->getSource ())
@@ -133,7 +133,7 @@ public function testCompileLabelWithDefaultLabel()
133
133
134
134
$ this ->assertEquals (
135
135
sprintf (
136
- '$this->env->getExtension ( \'Symfony\Bridge\Twig\Extension\FormExtension \')->renderer ->searchAndRenderBlock(%s, \'label \') ' ,
136
+ '$this->env->getRuntime ( \'Symfony\Bridge\Twig\Form\TwigRenderer \')->searchAndRenderBlock(%s, \'label \') ' ,
137
137
$ this ->getVariableGetter ('form ' )
138
138
),
139
139
trim ($ compiler ->compile ($ node )->getSource ())
@@ -160,7 +160,7 @@ public function testCompileLabelWithAttributes()
160
160
// https://github.com/symfony/symfony/issues/5029
161
161
$ this ->assertEquals (
162
162
sprintf (
163
- '$this->env->getExtension ( \'Symfony\Bridge\Twig\Extension\FormExtension \')->renderer ->searchAndRenderBlock(%s, \'label \', array("foo" => "bar")) ' ,
163
+ '$this->env->getRuntime ( \'Symfony\Bridge\Twig\Form\TwigRenderer \')->searchAndRenderBlock(%s, \'label \', array("foo" => "bar")) ' ,
164
164
$ this ->getVariableGetter ('form ' )
165
165
),
166
166
trim ($ compiler ->compile ($ node )->getSource ())
@@ -186,7 +186,7 @@ public function testCompileLabelWithLabelAndAttributes()
186
186
187
187
$ this ->assertEquals (
188
188
sprintf (
189
- '$this->env->getExtension ( \'Symfony\Bridge\Twig\Extension\FormExtension \')->renderer ->searchAndRenderBlock(%s, \'label \', array("foo" => "bar", "label" => "value in argument")) ' ,
189
+ '$this->env->getRuntime ( \'Symfony\Bridge\Twig\Form\TwigRenderer \')->searchAndRenderBlock(%s, \'label \', array("foo" => "bar", "label" => "value in argument")) ' ,
190
190
$ this ->getVariableGetter ('form ' )
191
191
),
192
192
trim ($ compiler ->compile ($ node )->getSource ())
@@ -217,7 +217,7 @@ public function testCompileLabelWithLabelThatEvaluatesToNull()
217
217
// https://github.com/symfony/symfony/issues/5029
218
218
$ this ->assertEquals (
219
219
sprintf (
220
- '$this->env->getExtension ( \'Symfony\Bridge\Twig\Extension\FormExtension \')->renderer ->searchAndRenderBlock(%s, \'label \', (twig_test_empty($_label_ = ((true) ? (null) : (null))) ? array() : array("label" => $_label_))) ' ,
220
+ '$this->env->getRuntime ( \'Symfony\Bridge\Twig\Form\TwigRenderer \')->searchAndRenderBlock(%s, \'label \', (twig_test_empty($_label_ = ((true) ? (null) : (null))) ? array() : array("label" => $_label_))) ' ,
221
221
$ this ->getVariableGetter ('form ' )
222
222
),
223
223
trim ($ compiler ->compile ($ node )->getSource ())
@@ -254,7 +254,7 @@ public function testCompileLabelWithLabelThatEvaluatesToNullAndAttributes()
254
254
// https://github.com/symfony/symfony/issues/5029
255
255
$ this ->assertEquals (
256
256
sprintf (
257
- '$this->env->getExtension ( \'Symfony\Bridge\Twig\Extension\FormExtension \')->renderer ->searchAndRenderBlock(%s, \'label \', array("foo" => "bar", "label" => "value in attributes") + (twig_test_empty($_label_ = ((true) ? (null) : (null))) ? array() : array("label" => $_label_))) ' ,
257
+ '$this->env->getRuntime ( \'Symfony\Bridge\Twig\Form\TwigRenderer \')->searchAndRenderBlock(%s, \'label \', array("foo" => "bar", "label" => "value in attributes") + (twig_test_empty($_label_ = ((true) ? (null) : (null))) ? array() : array("label" => $_label_))) ' ,
258
258
$ this ->getVariableGetter ('form ' )
259
259
),
260
260
trim ($ compiler ->compile ($ node )->getSource ())
0 commit comments