11
11
12
12
namespace Symfony \Bridge \Twig \Tests \Extension ;
13
13
14
- use Symfony \Component \Form \Extension \Core \DataTransformer \PercentToLocalizedStringTransformer ;
15
14
use Symfony \Component \Form \Extension \Core \Type \PercentType ;
16
15
use Symfony \Component \Form \FormError ;
17
16
use Symfony \Component \Form \Tests \AbstractLayoutTest ;
@@ -2212,7 +2211,7 @@ public function testPasswordWithMaxLength()
2212
2211
2213
2212
public function testPercent ()
2214
2213
{
2215
- $ form = $ this ->factory ->createNamed ('name ' , 'Symfony\Component\Form\Extension\Core\Type\PercentType ' , 0.1 , ['rounding_mode ' => PercentToLocalizedStringTransformer ::ROUND_CEILING ]);
2214
+ $ form = $ this ->factory ->createNamed ('name ' , 'Symfony\Component\Form\Extension\Core\Type\PercentType ' , 0.1 , ['rounding_mode ' => \NumberFormatter ::ROUND_CEILING ]);
2216
2215
2217
2216
$ this ->assertWidgetMatchesXpath ($ form ->createView (), ['id ' => 'my&id ' , 'attr ' => ['class ' => 'my&class ' ]],
2218
2217
'/div
@@ -2234,7 +2233,7 @@ public function testPercent()
2234
2233
2235
2234
public function testPercentNoSymbol ()
2236
2235
{
2237
- $ form = $ this ->factory ->createNamed ('name ' , PercentType::class, 0.1 , ['symbol ' => false , 'rounding_mode ' => PercentToLocalizedStringTransformer ::ROUND_CEILING ]);
2236
+ $ form = $ this ->factory ->createNamed ('name ' , PercentType::class, 0.1 , ['symbol ' => false , 'rounding_mode ' => \NumberFormatter ::ROUND_CEILING ]);
2238
2237
$ this ->assertWidgetMatchesXpath ($ form ->createView (), ['id ' => 'my&id ' , 'attr ' => ['class ' => 'my&class ' ]],
2239
2238
'/input
2240
2239
[@id="my&id"]
@@ -2248,7 +2247,7 @@ public function testPercentNoSymbol()
2248
2247
2249
2248
public function testPercentCustomSymbol ()
2250
2249
{
2251
- $ form = $ this ->factory ->createNamed ('name ' , PercentType::class, 0.1 , ['symbol ' => '‱ ' , 'rounding_mode ' => PercentToLocalizedStringTransformer ::ROUND_CEILING ]);
2250
+ $ form = $ this ->factory ->createNamed ('name ' , PercentType::class, 0.1 , ['symbol ' => '‱ ' , 'rounding_mode ' => \NumberFormatter ::ROUND_CEILING ]);
2252
2251
$ this ->assertWidgetMatchesXpath ($ form ->createView (), ['id ' => 'my&id ' , 'attr ' => ['class ' => 'my&class ' ]],
2253
2252
'/div
2254
2253
[@class="input-group"]
0 commit comments