Skip to content

Commit 2a7bab3

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: revert typo fix [Form] Fix ChoiceType to ensure submitted data is not nested unnecessarily Test inline styles with non-decorated formatter Fix RuntimeException when an Emacs buffer is modified [Yaml] add tests for specific mapping keys
2 parents d1ef72c + 7f98ec6 commit 2a7bab3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Tests/InlineTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,4 +468,15 @@ public function testVeryLongQuotedStrings()
468468

469469
$this->assertEquals($longStringWithQuotes, $arrayFromYaml['longStringWithQuotes']);
470470
}
471+
472+
public function testBooleanMappingKeysAreConvertedToStrings()
473+
{
474+
$this->assertSame(array('false' => 'foo'), Inline::parse('{false: foo}'));
475+
$this->assertSame(array('true' => 'foo'), Inline::parse('{true: foo}'));
476+
}
477+
478+
public function testTheEmptyStringIsAValidMappingKey()
479+
{
480+
$this->assertSame(array('' => 'foo'), Inline::parse('{ "": foo }'));
481+
}
471482
}

0 commit comments

Comments
 (0)