You are here

public function ParserTest::getParseExceptionNotAffectedMultiLineStringLastResortParsing in Lockr 7.3

File

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

Class

ParserTest

Namespace

Symfony\Component\Yaml\Tests

Code

public function getParseExceptionNotAffectedMultiLineStringLastResortParsing() {
  $tests = [];
  $yaml = <<<'EOT'
a
    b:
EOT;
  $tests['parse error on first line'] = [
    $yaml,
  ];
  $yaml = <<<'EOT'
a

b
    c:
EOT;
  $tests['parse error due to inconsistent indentation'] = [
    $yaml,
  ];
  $yaml = <<<'EOT'
 &  *  !  |  >  '  "  %  @  ` #, { asd a;sdasd }-@^qw3
EOT;
  $tests['symfony/symfony/issues/22967#issuecomment-322067742'] = [
    $yaml,
  ];
  return $tests;
}