/**
  * Teste LocaleUnsupportedException exception.
  *
  * @expectedException \Rentalhost\VanillaCount\Exception\LocaleUnsupportedException
  */
 public function testLocaleUnsupportedException()
 {
     Locale::getLocale('unknowLocale');
 }
Esempio n. 2
0
 /**
  * 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);
 }