You are here

public function ParserTest::getPseudoElementsTestData in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/css-selector/Tests/Parser/ParserTest.php \Symfony\Component\CssSelector\Tests\Parser\ParserTest::getPseudoElementsTestData()

File

vendor/symfony/css-selector/Tests/Parser/ParserTest.php, line 170

Class

ParserTest

Namespace

Symfony\Component\CssSelector\Tests\Parser

Code

public function getPseudoElementsTestData() {
  return array(
    array(
      'foo',
      'Element[foo]',
      '',
    ),
    array(
      '*',
      'Element[*]',
      '',
    ),
    array(
      ':empty',
      'Pseudo[Element[*]:empty]',
      '',
    ),
    array(
      ':BEfore',
      'Element[*]',
      'before',
    ),
    array(
      ':aftER',
      'Element[*]',
      'after',
    ),
    array(
      ':First-Line',
      'Element[*]',
      'first-line',
    ),
    array(
      ':First-Letter',
      'Element[*]',
      'first-letter',
    ),
    array(
      '::befoRE',
      'Element[*]',
      'before',
    ),
    array(
      '::AFter',
      'Element[*]',
      'after',
    ),
    array(
      '::firsT-linE',
      'Element[*]',
      'first-line',
    ),
    array(
      '::firsT-letteR',
      'Element[*]',
      'first-letter',
    ),
    array(
      '::Selection',
      'Element[*]',
      'selection',
    ),
    array(
      'foo:after',
      'Element[foo]',
      'after',
    ),
    array(
      'foo::selection',
      'Element[foo]',
      'selection',
    ),
    array(
      'lorem#ipsum ~ a#b.c[href]:empty::selection',
      'CombinedSelector[Hash[Element[lorem]#ipsum] ~ Pseudo[Attribute[Class[Hash[Element[a]#b].c][href]]:empty]]',
      'selection',
    ),
  );
}