You are here

public function InlineTest::testOmittedMappingKeyIsParsedAsColon in Lockr 7.3

@group legacy @expectedDeprecation Omitting the key of a mapping is deprecated and will throw a ParseException in 4.0 on line 1.

File

vendor/symfony/yaml/Tests/InlineTest.php, line 742

Class

InlineTest

Namespace

Symfony\Component\Yaml\Tests

Code

public function testOmittedMappingKeyIsParsedAsColon() {
  $this
    ->assertSame([
    ':' => 'foo',
  ], Inline::parse('{: foo}'));
}