@@ -96,7 +96,7 @@ public function testGetOutputFormat($expected, $locale): void
9696 $ this ->numberFormatterFactory
9797 ->method ('create ' )
9898 ->with (['locale ' => $ locale , 'style ' => 2 ])
99- ->willReturn (new \NumberFormatter ($ locale , 2 ));
99+ ->willReturn (new \Magento \ Framework \ NumberFormatter ($ locale , 2 ));
100100 self ::assertEquals ($ expected , $ this ->currency ->getOutputFormat ());
101101 }
102102
@@ -132,12 +132,12 @@ public function testFormatTxtWithNumberFormatter(
132132 string $ locale ,
133133 string $ expected
134134 ): void {
135- $ this ->localeResolver ->expects (self ::once ( ))->method ('getLocale ' )->willReturn ($ locale );
135+ $ this ->localeResolver ->expects (self ::exactly ( 2 ))->method ('getLocale ' )->willReturn ($ locale );
136136 $ this ->numberFormatterFactory
137137 ->expects (self ::once ())
138138 ->method ('create ' )
139139 ->with (['locale ' => $ locale , 'style ' => 2 ])
140- ->willReturn (new \NumberFormatter ($ locale , 2 ));
140+ ->willReturn (new \Magento \ Framework \ NumberFormatter ($ locale , 2 ));
141141
142142 self ::assertEquals ($ expected , $ this ->currency ->formatTxt ($ price , $ options ));
143143 }
@@ -153,6 +153,7 @@ public function getFormatTxtNumberFormatterDataProvider(): array
153153 ['9999 ' , [], 'en_US ' , '$9,999.00 ' ],
154154 ['9999 ' , ['display ' => \Magento \Framework \Currency::NO_SYMBOL , 'precision ' => 2 ], 'en_US ' , '9,999.00 ' ],
155155 ['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 ' ],
156157 ['9999 ' , ['precision ' => 1 ], 'en_US ' , '$9,999.0 ' ],
157158 ['9999 ' , ['precision ' => 2 , 'symbol ' => '# ' ], 'en_US ' , '#9,999.00 ' ],
158159 [
0 commit comments