You are here

public function ParserTest::parserThrowsExceptionWithCorrectLineNumberProvider in Lockr 7.3

File

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

Class

ParserTest

Namespace

Symfony\Component\Yaml\Tests

Code

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