You are here

public function CombinedSelectorNodeTest::getSpecificityValueTestData in Zircon Profile 8

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

Overrides AbstractNodeTest::getSpecificityValueTestData

File

vendor/symfony/css-selector/Tests/Node/CombinedSelectorNodeTest.php, line 27

Class

CombinedSelectorNodeTest

Namespace

Symfony\Component\CssSelector\Tests\Node

Code

public function getSpecificityValueTestData() {
  return array(
    array(
      new CombinedSelectorNode(new ElementNode(), '>', new ElementNode()),
      0,
    ),
    array(
      new CombinedSelectorNode(new ElementNode(null, 'element'), '>', new ElementNode()),
      1,
    ),
    array(
      new CombinedSelectorNode(new ElementNode(null, 'element'), '>', new ElementNode(null, 'element')),
      2,
    ),
  );
}