You are here

public function FunctionNodeTest::getToStringConversionTestData in Zircon Profile 8

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

Overrides AbstractNodeTest::getToStringConversionTestData

File

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

Class

FunctionNodeTest

Namespace

Symfony\Component\CssSelector\Tests\Node

Code

public function getToStringConversionTestData() {
  return array(
    array(
      new FunctionNode(new ElementNode(), 'function'),
      'Function[Element[*]:function()]',
    ),
    array(
      new FunctionNode(new ElementNode(), 'function', array(
        new Token(Token::TYPE_IDENTIFIER, 'value', 0),
      )),
      "Function[Element[*]:function(['value'])]",
    ),
    array(
      new FunctionNode(new ElementNode(), 'function', array(
        new Token(Token::TYPE_STRING, 'value1', 0),
        new Token(Token::TYPE_NUMBER, 'value2', 0),
      )),
      "Function[Element[*]:function(['value1', 'value2'])]",
    ),
  );
}