public function StringHandlerTest::getHandleValueTestData in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/css-selector/Tests/Parser/Handler/StringHandlerTest.php \Symfony\Component\CssSelector\Tests\Parser\Handler\StringHandlerTest::getHandleValueTestData()
Overrides AbstractHandlerTest::getHandleValueTestData
File
- vendor/
symfony/ css-selector/ Tests/ Parser/ Handler/ StringHandlerTest.php, line 21
Class
Namespace
Symfony\Component\CssSelector\Tests\Parser\HandlerCode
public function getHandleValueTestData() {
return array(
array(
'"hello"',
new Token(Token::TYPE_STRING, 'hello', 1),
'',
),
array(
'"1"',
new Token(Token::TYPE_STRING, '1', 1),
'',
),
array(
'" "',
new Token(Token::TYPE_STRING, ' ', 1),
'',
),
array(
'""',
new Token(Token::TYPE_STRING, '', 1),
'',
),
array(
"'hello'",
new Token(Token::TYPE_STRING, 'hello', 1),
'',
),
array(
"'foo'bar",
new Token(Token::TYPE_STRING, 'foo', 1),
'bar',
),
);
}