public function createService(ServiceLocatorInterface $sm)
 {
     $configManager = $sm->getServiceLocator()->get('Base\\Manager\\ConfigManager');
     $locale = $configManager->need('i18n.locale');
     $numberFormat = new NumberFormat();
     $numberFormat->setLocale($locale);
     return $numberFormat;
 }
    /**
     * @dataProvider currencyTestsDataProvider
     */
    public function testSettersProvideDefaults($locale, $formatStyle, $formatType, $number, $expected)
    {
        $this->helper
             ->setLocale($locale)
             ->setFormatStyle($formatStyle)
             ->setFormatType($formatType);

        $this->assertMbStringEquals($expected, $this->helper->__invoke($number));
    }