public function ParserTest::testParseReferencesOnMergeKeys in Lockr 7.3
File
- vendor/
symfony/ yaml/ Tests/ ParserTest.php, line 2112
Class
Namespace
Symfony\Component\Yaml\TestsCode
public function testParseReferencesOnMergeKeys() {
$yaml = <<<YAML
mergekeyrefdef:
a: foo
<<: &quux
b: bar
c: baz
mergekeyderef:
d: quux
<<: *quux
YAML;
$expected = [
'mergekeyrefdef' => [
'a' => 'foo',
'b' => 'bar',
'c' => 'baz',
],
'mergekeyderef' => [
'd' => 'quux',
'b' => 'bar',
'c' => 'baz',
],
];
$this
->assertSame($expected, $this->parser
->parse($yaml));
}