public function bestMatchingLocalesAreFoundCorrectly()
{
foreach ($this->locales as $locale) {
$this->localeCollection->addLocale($locale);
}
$this->assertEquals($this->locales[1], $this->localeCollection->findBestMatchingLocale($this->locales[1]));
$this->assertEquals($this->locales[1], $this->localeCollection->findBestMatchingLocale(new I18n\Locale('pl_PL_DVORAK')));
$this->assertNull($this->localeCollection->findBestMatchingLocale(new I18n\Locale('sv')));
}