public function DumperTest::testObjectSupportEnabledPassingTrue in Lockr 7.3
@group legacy
File
- vendor/
symfony/ yaml/ Tests/ DumperTest.php, line 219
Class
Namespace
Symfony\Component\Yaml\TestsCode
public function testObjectSupportEnabledPassingTrue() {
$dump = $this->dumper
->dump([
'foo' => new A(),
'bar' => 1,
], 0, 0, false, true);
$this
->assertEquals('{ foo: !php/object \'O:30:"Symfony\\Component\\Yaml\\Tests\\A":1:{s:1:"a";s:3:"foo";}\', bar: 1 }', $dump, '->dump() is able to dump objects');
}