You are here

public function TranslatorTest::getXmlLangTestData in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/css-selector/Tests/XPath/TranslatorTest.php \Symfony\Component\CssSelector\Tests\XPath\TranslatorTest::getXmlLangTestData()

File

vendor/symfony/css-selector/Tests/XPath/TranslatorTest.php, line 135

Class

TranslatorTest

Namespace

Symfony\Component\CssSelector\Tests\XPath

Code

public function getXmlLangTestData() {
  return array(
    array(
      ':lang("EN")',
      array(
        'first',
        'second',
        'third',
        'fourth',
      ),
    ),
    array(
      ':lang("en-us")',
      array(
        'second',
        'fourth',
      ),
    ),
    array(
      ':lang(en-nz)',
      array(
        'third',
      ),
    ),
    array(
      ':lang(fr)',
      array(
        'fifth',
      ),
    ),
    array(
      ':lang(ru)',
      array(
        'sixth',
      ),
    ),
    array(
      ":lang('ZH')",
      array(
        'eighth',
      ),
    ),
    array(
      ':lang(de) :lang(zh)',
      array(
        'eighth',
      ),
    ),
    array(
      ':lang(en), :lang(zh)',
      array(
        'first',
        'second',
        'third',
        'fourth',
        'eighth',
      ),
    ),
    array(
      ':lang(es)',
      array(),
    ),
  );
}