/** * test config() * * @return void */ public function testConfig() { $result = $this->Number->currency(15000, 'INR', ['locale' => 'en_IN']); $this->assertEquals('₹ 15,000.00', $result); Number::config('en_IN', \NumberFormatter::CURRENCY, ['pattern' => '¤ #,##,##0']); $result = $this->Number->currency(15000, 'INR', ['locale' => 'en_IN']); $this->assertEquals('₹ 15,000', $result); }