You are here

public function NumberHandlerTest::getHandleValueTestData in Zircon Profile 8

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

Overrides AbstractHandlerTest::getHandleValueTestData

File

vendor/symfony/css-selector/Tests/Parser/Handler/NumberHandlerTest.php, line 20

Class

NumberHandlerTest

Namespace

Symfony\Component\CssSelector\Tests\Parser\Handler

Code

public function getHandleValueTestData() {
  return array(
    array(
      '12',
      new Token(Token::TYPE_NUMBER, '12', 0),
      '',
    ),
    array(
      '12.34',
      new Token(Token::TYPE_NUMBER, '12.34', 0),
      '',
    ),
    array(
      '+12.34',
      new Token(Token::TYPE_NUMBER, '+12.34', 0),
      '',
    ),
    array(
      '-12.34',
      new Token(Token::TYPE_NUMBER, '-12.34', 0),
      '',
    ),
    array(
      '12 arg',
      new Token(Token::TYPE_NUMBER, '12', 0),
      ' arg',
    ),
    array(
      '12]',
      new Token(Token::TYPE_NUMBER, '12', 0),
      ']',
    ),
  );
}