@@ -96,7 +96,7 @@ public function testGetOutputFormat($expected, $locale): void
96
96
$ this ->numberFormatterFactory
97
97
->method ('create ' )
98
98
->with (['locale ' => $ locale , 'style ' => 2 ])
99
- ->willReturn (new \NumberFormatter ($ locale , 2 ));
99
+ ->willReturn (new \Magento \ Framework \ NumberFormatter ($ locale , 2 ));
100
100
self ::assertEquals ($ expected , $ this ->currency ->getOutputFormat ());
101
101
}
102
102
@@ -132,12 +132,12 @@ public function testFormatTxtWithNumberFormatter(
132
132
string $ locale ,
133
133
string $ expected
134
134
): void {
135
- $ this ->localeResolver ->expects (self ::once ( ))->method ('getLocale ' )->willReturn ($ locale );
135
+ $ this ->localeResolver ->expects (self ::exactly ( 2 ))->method ('getLocale ' )->willReturn ($ locale );
136
136
$ this ->numberFormatterFactory
137
137
->expects (self ::once ())
138
138
->method ('create ' )
139
139
->with (['locale ' => $ locale , 'style ' => 2 ])
140
- ->willReturn (new \NumberFormatter ($ locale , 2 ));
140
+ ->willReturn (new \Magento \ Framework \ NumberFormatter ($ locale , 2 ));
141
141
142
142
self ::assertEquals ($ expected , $ this ->currency ->formatTxt ($ price , $ options ));
143
143
}
@@ -153,6 +153,7 @@ public function getFormatTxtNumberFormatterDataProvider(): array
153
153
['9999 ' , [], 'en_US ' , '$9,999.00 ' ],
154
154
['9999 ' , ['display ' => \Magento \Framework \Currency::NO_SYMBOL , 'precision ' => 2 ], 'en_US ' , '9,999.00 ' ],
155
155
['9999 ' , ['display ' => \Magento \Framework \Currency::NO_SYMBOL ], 'en_US ' , '9,999.00 ' ],
156
+ [' 9999 ' , ['display ' => \Magento \Framework \Currency::NO_SYMBOL ], 'en_US ' , '9,999.00 ' ],
156
157
['9999 ' , ['precision ' => 1 ], 'en_US ' , '$9,999.0 ' ],
157
158
['9999 ' , ['precision ' => 2 , 'symbol ' => '# ' ], 'en_US ' , '#9,999.00 ' ],
158
159
[
0 commit comments