You are here

public function InlineTest::getDataForParseReferences in Lockr 7.3

File

vendor/symfony/yaml/Tests/InlineTest.php, line 247

Class

InlineTest

Namespace

Symfony\Component\Yaml\Tests

Code

public function getDataForParseReferences() {
  return [
    'scalar' => [
      '*var',
      'var-value',
    ],
    'list' => [
      '[ *var ]',
      [
        'var-value',
      ],
    ],
    'list-in-list' => [
      '[[ *var ]]',
      [
        [
          'var-value',
        ],
      ],
    ],
    'map-in-list' => [
      '[ { key: *var } ]',
      [
        [
          'key' => 'var-value',
        ],
      ],
    ],
    'embedded-mapping-in-list' => [
      '[ key: *var ]',
      [
        [
          'key' => 'var-value',
        ],
      ],
    ],
    'map' => [
      '{ key: *var }',
      [
        'key' => 'var-value',
      ],
    ],
    'list-in-map' => [
      '{ key: [*var] }',
      [
        'key' => [
          'var-value',
        ],
      ],
    ],
    'map-in-map' => [
      '{ foo: { bar: *var } }',
      [
        'foo' => [
          'bar' => 'var-value',
        ],
      ],
    ],
  ];
}