You are here

public function ParserTest::parserThrowsExceptionWithCorrectLineNumberProvider in Loft Data Grids 7.2

File

vendor/symfony/yaml/Tests/ParserTest.php, line 1171

Class

ParserTest

Namespace

Symfony\Component\Yaml\Tests

Code

public function parserThrowsExceptionWithCorrectLineNumberProvider() {
  return array(
    array(
      4,
      <<<'YAML'
foo:
    -
        # bar
        bar: "123",
YAML
,
    ),
    array(
      5,
      <<<'YAML'
foo:
    -
        # bar
        # bar
        bar: "123",
YAML
,
    ),
    array(
      8,
      <<<'YAML'
foo:
    -
        # foobar
        baz: 123
bar:
    -
        # bar
        bar: "123",
YAML
,
    ),
    array(
      10,
      <<<'YAML'
foo:
    -
        # foobar
        # foobar
        baz: 123
bar:
    -
        # bar
        # bar
        bar: "123",
YAML
,
    ),
  );
}