You are here

public function StringHandlerTest::getHandleValueTestData in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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

StringHandlerTest

Namespace

Symfony\Component\CssSelector\Tests\Parser\Handler

Code

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',
    ),
  );
}