Neos\Flow\Tests\Unit\I18n\LocaleCollectionTest::bestMatchingLocalesAreFoundCorrectly PHP Метод

bestMatchingLocalesAreFoundCorrectly() публичный Метод

    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')));
    }