You are here

public function ParserTest::getParseSeriesTestData in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/css-selector/Tests/Parser/ParserTest.php \Symfony\Component\CssSelector\Tests\Parser\ParserTest::getParseSeriesTestData()

File

vendor/symfony/css-selector/Tests/Parser/ParserTest.php, line 219

Class

ParserTest

Namespace

Symfony\Component\CssSelector\Tests\Parser

Code

public function getParseSeriesTestData() {
  return array(
    array(
      '1n+3',
      1,
      3,
    ),
    array(
      '1n +3',
      1,
      3,
    ),
    array(
      '1n + 3',
      1,
      3,
    ),
    array(
      '1n+ 3',
      1,
      3,
    ),
    array(
      '1n-3',
      1,
      -3,
    ),
    array(
      '1n -3',
      1,
      -3,
    ),
    array(
      '1n - 3',
      1,
      -3,
    ),
    array(
      '1n- 3',
      1,
      -3,
    ),
    array(
      'n-5',
      1,
      -5,
    ),
    array(
      'odd',
      2,
      1,
    ),
    array(
      'even',
      2,
      0,
    ),
    array(
      '3n',
      3,
      0,
    ),
    array(
      'n',
      1,
      0,
    ),
    array(
      '+n',
      1,
      0,
    ),
    array(
      '-n',
      -1,
      0,
    ),
    array(
      '5',
      0,
      5,
    ),
  );
}