public function DumperTest::testObjectSupportDisabledButNoExceptions in Service Container 7
Same name and namespace in other branches
- 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/Yaml/Tests/DumperTest.php \Symfony\Component\Yaml\Tests\DumperTest::testObjectSupportDisabledButNoExceptions()
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ Yaml/ Tests/ DumperTest.php, line 186
Class
Namespace
Symfony\Component\Yaml\TestsCode
public function testObjectSupportDisabledButNoExceptions() {
$dump = $this->dumper
->dump(array(
'foo' => new A(),
'bar' => 1,
));
$this
->assertEquals('{ foo: null, bar: 1 }', $dump, '->dump() does not dump objects when disabled');
}