/** * Teste LocaleUnsupportedException exception. * * @expectedException \Rentalhost\VanillaCount\Exception\LocaleUnsupportedException */ public function testLocaleUnsupportedException() { Locale::getLocale('unknowLocale'); }
/** * Count constructor. * * @param Locale|string $locale Locale of instance. * @param array|null $options Options of locale. */ public function __construct($locale, $options = null) { $this->locale = Locale::getLocale($locale, $options); }