Negotiation\Tests\LanguageNegotiatorTest::dataProviderForTestGetBest PHP Method

dataProviderForTestGetBest() public static method

public static dataProviderForTestGetBest ( )
    public static function dataProviderForTestGetBest()
    {
        return array(array('en, de', array('fr'), null), array('foo, bar, yo', array('baz', 'biz'), null), array('fr-FR, en;q=0.8', array('en-US', 'de-DE'), 'en-US'), array('en, *;q=0.9', array('fr'), 'fr'), array('foo, bar, yo', array('yo'), 'yo'), array('en; q=0.1, fr; q=0.4, bu; q=1.0', array('en', 'fr'), 'fr'), array('en; q=0.1, fr; q=0.4, fu; q=0.9, de; q=0.2', array('en', 'fu'), 'fu'), array('', array('en', 'fu'), new InvalidArgument('The header string should not be empty.')), array('fr, zh-Hans-CN;q=0.3', array('fr'), 'fr'), array('en;q=0.5,de', array('de;q=0.3', 'en;q=0.9'), 'en;q=0.9'));
    }