/** * @dataProvider formatProvider */ public function testFormat($number, array $options, $expected) { $this->localeContext->expects($this->once())->method('getLocale')->will($this->returnValue('en')); $this->assertSame($expected, $this->formatter->format($number, $options)); }