public function testChangeFormatterOnFly() { $filter = new Uncurrency('it_IT'); $custom = \NumberFormatter::create('en_US', \NumberFormatter::CURRENCY); $filter->setFormatter($custom); $this->assertEquals('en_US', $filter->getLocale()); }