You are here

public function WhitespaceHandlerTest::getHandleValueTestData in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/css-selector/Tests/Parser/Handler/WhitespaceHandlerTest.php \Symfony\Component\CssSelector\Tests\Parser\Handler\WhitespaceHandlerTest::getHandleValueTestData()

Overrides AbstractHandlerTest::getHandleValueTestData

File

vendor/symfony/css-selector/Tests/Parser/Handler/WhitespaceHandlerTest.php, line 19

Class

WhitespaceHandlerTest

Namespace

Symfony\Component\CssSelector\Tests\Parser\Handler

Code

public function getHandleValueTestData() {
  return array(
    array(
      ' ',
      new Token(Token::TYPE_WHITESPACE, ' ', 0),
      '',
    ),
    array(
      "\n",
      new Token(Token::TYPE_WHITESPACE, "\n", 0),
      '',
    ),
    array(
      "\t",
      new Token(Token::TYPE_WHITESPACE, "\t", 0),
      '',
    ),
    array(
      ' foo',
      new Token(Token::TYPE_WHITESPACE, ' ', 0),
      'foo',
    ),
    array(
      ' .foo',
      new Token(Token::TYPE_WHITESPACE, ' ', 0),
      '.foo',
    ),
  );
}