You are here

public function ParserTest::getParseExceptionNotAffectedMultiLineStringLastResortParsing in Database Sanitize 7

File

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

Class

ParserTest

Namespace

Symfony\Component\Yaml\Tests

Code

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

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