You are here

public function ParserTest::testParserCleansUpReferencesBetweenRuns in Loft Data Grids 7.2

@expectedException \Symfony\Component\Yaml\Exception\ParseException @expectedExceptionMessage Reference "foo" does not exist at line 2

File

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

Class

ParserTest

Namespace

Symfony\Component\Yaml\Tests

Code

public function testParserCleansUpReferencesBetweenRuns() {
  $yaml = <<<YAML
foo: &foo
    baz: foobar
bar:
    <<: *foo
YAML;
  $this->parser
    ->parse($yaml);
  $yaml = <<<YAML
bar:
    <<: *foo
YAML;
  $this->parser
    ->parse($yaml);
}