public function testCreateStub() { $this->assertInstanceOf( 'Symfony\Component\Locale\Stub\StubNumberFormatter', StubNumberFormatter::create('en', StubNumberFormatter::DECIMAL) ); }
/** * @return string */ public function render() { $formatter = new StubNumberFormatter($this->container->getParameter('pedro_teixeira_grid.currency.locale'), StubNumberFormatter::CURRENCY); return $formatter->formatCurrency($this->getValue(), $this->container->getParameter('pedro_teixeira_grid.currency.currency')); }