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
Namespace
Symfony\Component\Yaml\TestsCode
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);
}