We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68d6415 commit b8e0d70Copy full SHA for b8e0d70
src/Symfony/Component/Yaml/Tests/InlineTest.php
@@ -420,4 +420,15 @@ public function testVeryLongQuotedStrings()
420
421
$this->assertEquals($longStringWithQuotes, $arrayFromYaml['longStringWithQuotes']);
422
}
423
+
424
+ public function testBooleanMappingKeysAreConvertedToStrings()
425
+ {
426
+ $this->assertSame(array('false' => 'foo'), Inline::parse('{false: foo}'));
427
+ $this->assertSame(array('true' => 'foo'), Inline::parse('{true: foo}'));
428
+ }
429
430
+ public function testTheEmptyStringIsAValidMappingKey()
431
432
+ $this->assertSame(array('' => 'foo'), Inline::parse('{ "": foo }'));
433
434
0 commit comments