You are here

public function ParserTest::testObjectSupportEnabledWithDeprecatedTag in Lockr 7.3

@group legacy @dataProvider deprecatedObjectValueProvider

File

vendor/symfony/yaml/Tests/ParserTest.php, line 498

Class

ParserTest

Namespace

Symfony\Component\Yaml\Tests

Code

public function testObjectSupportEnabledWithDeprecatedTag($yaml) {
  $this
    ->assertEquals([
    'foo' => new B(),
    'bar' => 1,
  ], $this->parser
    ->parse($yaml, Yaml::PARSE_OBJECT), '->parse() is able to parse objects');
}