You are here

public function ParserTest::circularReferenceProvider in Lockr 7.3

File

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

Class

ParserTest

Namespace

Symfony\Component\Yaml\Tests

Code

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;
}