public function ParserTest::circularReferenceProvider in Lockr 7.3
File
- vendor/
symfony/ yaml/ Tests/ ParserTest.php, line 2190
Class
Namespace
Symfony\Component\Yaml\TestsCode
public function circularReferenceProvider() {
$tests = [];
$yaml = <<<YAML
foo:
- &foo
- &bar
bar: foobar
baz: *foo
YAML;
$tests['sequence'] = [
$yaml,
];
$yaml = <<<YAML
foo: &foo
bar: &bar
foobar: baz
baz: *foo
YAML;
$tests['mapping'] = [
$yaml,
];
$yaml = <<<YAML
foo: &foo
bar: &bar
foobar: baz
<<: *foo
YAML;
$tests['mapping with merge key'] = [
$yaml,
];
return $tests;
}