public function FunctionNodeTest::getToStringConversionTestData in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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
Namespace
Symfony\Component\CssSelector\Tests\NodeCode
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'])]",
),
);
}