public function AttributeNodeTest::getToStringConversionTestData in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/css-selector/Tests/Node/AttributeNodeTest.php \Symfony\Component\CssSelector\Tests\Node\AttributeNodeTest::getToStringConversionTestData()
Overrides AbstractNodeTest::getToStringConversionTestData
File
- vendor/
symfony/ css-selector/ Tests/ Node/ AttributeNodeTest.php, line 19
Class
Namespace
Symfony\Component\CssSelector\Tests\NodeCode
public function getToStringConversionTestData() {
return array(
array(
new AttributeNode(new ElementNode(), null, 'attribute', 'exists', null),
'Attribute[Element[*][attribute]]',
),
array(
new AttributeNode(new ElementNode(), null, 'attribute', '$=', 'value'),
"Attribute[Element[*][attribute \$= 'value']]",
),
array(
new AttributeNode(new ElementNode(), 'namespace', 'attribute', '$=', 'value'),
"Attribute[Element[*][namespace|attribute \$= 'value']]",
),
);
}