You are here

public function FunctionNodeTest::getSpecificityValueTestData in Zircon Profile 8.0

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

Overrides AbstractNodeTest::getSpecificityValueTestData

File

vendor/symfony/css-selector/Tests/Node/FunctionNodeTest.php, line 34

Class

FunctionNodeTest

Namespace

Symfony\Component\CssSelector\Tests\Node

Code

public function getSpecificityValueTestData() {
  return array(
    array(
      new FunctionNode(new ElementNode(), 'function'),
      10,
    ),
    array(
      new FunctionNode(new ElementNode(), 'function', array(
        new Token(Token::TYPE_IDENTIFIER, 'value', 0),
      )),
      10,
    ),
    array(
      new FunctionNode(new ElementNode(), 'function', array(
        new Token(Token::TYPE_STRING, 'value1', 0),
        new Token(Token::TYPE_NUMBER, 'value2', 0),
      )),
      10,
    ),
  );
}