public function InlineTest::getTestsForDump in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/yaml/Tests/InlineTest.php \Symfony\Component\Yaml\Tests\InlineTest::getTestsForDump()
File
- vendor/
symfony/ yaml/ Tests/ InlineTest.php, line 330
Class
Namespace
Symfony\Component\Yaml\TestsCode
public function getTestsForDump() {
return array(
array(
'null',
null,
),
array(
'false',
false,
),
array(
'true',
true,
),
array(
'12',
12,
),
array(
"'quoted string'",
'quoted string',
),
array(
'!!float 1230',
1230.0,
),
array(
'1234',
0x4d2,
),
array(
'1243',
02333,
),
array(
'.Inf',
-log(0),
),
array(
'-.Inf',
log(0),
),
array(
"'686e444'",
'686e444',
),
array(
'"foo\\r\\nbar"',
"foo\r\nbar",
),
array(
"'foo#bar'",
'foo#bar',
),
array(
"'foo # bar'",
'foo # bar',
),
array(
"'#cfcfcf'",
'#cfcfcf',
),
array(
"'a \"string\" with ''quoted strings inside'''",
'a "string" with \'quoted strings inside\'',
),
array(
"'-dash'",
'-dash',
),
array(
"'-'",
'-',
),
// Pre-YAML-1.2 booleans
array(
"'y'",
'y',
),
array(
"'n'",
'n',
),
array(
"'yes'",
'yes',
),
array(
"'no'",
'no',
),
array(
"'on'",
'on',
),
array(
"'off'",
'off',
),
// sequences
array(
'[foo, bar, false, null, 12]',
array(
'foo',
'bar',
false,
null,
12,
),
),
array(
'[\'foo,bar\', \'foo bar\']',
array(
'foo,bar',
'foo bar',
),
),
// mappings
array(
'{ foo: bar, bar: foo, \'false\': false, \'null\': null, integer: 12 }',
array(
'foo' => 'bar',
'bar' => 'foo',
'false' => false,
'null' => null,
'integer' => 12,
),
),
array(
'{ foo: bar, bar: \'foo: bar\' }',
array(
'foo' => 'bar',
'bar' => 'foo: bar',
),
),
// nested sequences and mappings
array(
'[foo, [bar, foo]]',
array(
'foo',
array(
'bar',
'foo',
),
),
),
array(
'[foo, [bar, [foo, [bar, foo]], foo]]',
array(
'foo',
array(
'bar',
array(
'foo',
array(
'bar',
'foo',
),
),
'foo',
),
),
),
array(
'{ foo: { bar: foo } }',
array(
'foo' => array(
'bar' => 'foo',
),
),
),
array(
'[foo, { bar: foo }]',
array(
'foo',
array(
'bar' => 'foo',
),
),
),
array(
'[foo, { bar: foo, foo: [foo, { bar: foo }] }, [foo, { bar: foo }]]',
array(
'foo',
array(
'bar' => 'foo',
'foo' => array(
'foo',
array(
'bar' => 'foo',
),
),
),
array(
'foo',
array(
'bar' => 'foo',
),
),
),
),
array(
'[foo, \'@foo.baz\', { \'%foo%\': \'foo is %foo%\', bar: \'%foo%\' }, true, \'@service_container\']',
array(
'foo',
'@foo.baz',
array(
'%foo%' => 'foo is %foo%',
'bar' => '%foo%',
),
true,
'@service_container',
),
),
);
}