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; }
public function testDefaultLocale() { $this->assertEquals(Locale::getDefault(), $this->helper->getLocale()); }