public function ParserTest::testParserCleansUpReferencesBetweenRuns in Lockr 7.3
@expectedException \Symfony\Component\Yaml\Exception\ParseException @expectedExceptionMessage Reference "foo" does not exist at line 2
File
- vendor/
symfony/ yaml/ Tests/ ParserTest.php, line 1938
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);
}