public function ParserTest::taggedValuesProvider in Lockr 7.3
File
- vendor/
symfony/ yaml/ Tests/ ParserTest.php, line 1776
Class
Namespace
Symfony\Component\Yaml\TestsCode
public function taggedValuesProvider() {
return [
'sequences' => [
[
new TaggedValue('foo', [
'yaml',
]),
new TaggedValue('quz', [
'bar',
]),
],
<<<YAML
- !foo
- yaml
- !quz [bar]
YAML
,
],
'mappings' => [
new TaggedValue('foo', [
'foo' => new TaggedValue('quz', [
'bar',
]),
'quz' => new TaggedValue('foo', [
'quz' => 'bar',
]),
]),
<<<YAML
!foo
foo: !quz [bar]
quz: !foo
quz: bar
YAML
,
],
'inline' => [
[
new TaggedValue('foo', [
'foo',
'bar',
]),
new TaggedValue('quz', [
'foo' => 'bar',
'quz' => new TaggedValue('bar', [
'one' => 'bar',
]),
]),
],
<<<YAML
- !foo [foo, bar]
- !quz {foo: bar, quz: !bar {one: bar}}
YAML
,
],
];
}