You are here

public function ClassParserTest::getParseTestData in Zircon Profile 8

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

File

vendor/symfony/css-selector/Tests/Parser/Shortcut/ClassParserTest.php, line 34

Class

ClassParserTest
@author Jean-François Simon <jeanfrancois.simon@sensiolabs.com>

Namespace

Symfony\Component\CssSelector\Tests\Parser\Shortcut

Code

public function getParseTestData() {
  return array(
    array(
      '.testclass',
      'Class[Element[*].testclass]',
    ),
    array(
      'testel.testclass',
      'Class[Element[testel].testclass]',
    ),
    array(
      'testns|.testclass',
      'Class[Element[testns|*].testclass]',
    ),
    array(
      'testns|*.testclass',
      'Class[Element[testns|*].testclass]',
    ),
    array(
      'testns|testel.testclass',
      'Class[Element[testns|testel].testclass]',
    ),
  );
}