/** * Gets value of text attribute of \NumberFormatter * * @param string|int $attribute * @param string|null $style * @param string|null $locale * @return string */ public function getTextAttribute($attribute, $style = null, $locale = null) { return $this->formatter->getTextAttribute($attribute, $style, $locale); }
/** * @dataProvider getTextAttributeDataProvider */ public function testTextAttribute($attribute, $locale, $style, $expected) { $this->assertSame($expected, $this->formatter->getTextAttribute($attribute, $locale, $style)); }