Skip to content

Commit 24e1be1

Browse files
committed
Merge branch '2.8' into 3.2
* 2.8: fixed tests 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 d1820b5 + 2a7bab3 commit 24e1be1

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
@@ -698,4 +698,15 @@ public function testOmittedMappingKeyIsParsedAsColon()
698698
{
699699
$this->assertSame(array(':' => 'foo'), Inline::parse('{: foo}'));
700700
}
701+
702+
public function testBooleanMappingKeysAreConvertedToStrings()
703+
{
704+
$this->assertSame(array('false' => 'foo'), Inline::parse('{false: foo}'));
705+
$this->assertSame(array('true' => 'foo'), Inline::parse('{true: foo}'));
706+
}
707+
708+
public function testTheEmptyStringIsAValidMappingKey()
709+
{
710+
$this->assertSame(array('' => 'foo'), Inline::parse('{ "": foo }'));
711+
}
701712
}

0 commit comments

Comments
 (0)