public function DumperTest::testObjectSupportDisabledWithExceptions in Database Sanitize 7
@expectedException \Symfony\Component\Yaml\Exception\DumpException
File
- vendor/
symfony/ yaml/ Tests/ DumperTest.php, line 236
Class
Namespace
Symfony\Component\Yaml\TestsCode
public function testObjectSupportDisabledWithExceptions() {
$this->dumper
->dump(array(
'foo' => new A(),
'bar' => 1,
), 0, 0, Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE);
}