public function TranslatorTest::getXpathLiteralTestData in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/css-selector/Tests/XPath/TranslatorTest.php \Symfony\Component\CssSelector\Tests\XPath\TranslatorTest::getXpathLiteralTestData()
File
- vendor/
symfony/ css-selector/ Tests/ XPath/ TranslatorTest.php, line 80
Class
Namespace
Symfony\Component\CssSelector\Tests\XPathCode
public function getXpathLiteralTestData() {
return array(
array(
'foo',
"'foo'",
),
array(
"foo's bar",
'"foo\'s bar"',
),
array(
"foo's \"middle\" bar",
'concat(\'foo\', "\'", \'s "middle" bar\')',
),
array(
"foo's 'middle' \"bar\"",
'concat(\'foo\', "\'", \'s \', "\'", \'middle\', "\'", \' "bar"\')',
),
);
}