You are here

public function DumperTest::testObjectSupportDisabledWithExceptions in Lockr 7.3

@expectedException \Symfony\Component\Yaml\Exception\DumpException

File

vendor/symfony/yaml/Tests/DumperTest.php, line 236

Class

DumperTest

Namespace

Symfony\Component\Yaml\Tests

Code

public function testObjectSupportDisabledWithExceptions() {
  $this->dumper
    ->dump([
    'foo' => new A(),
    'bar' => 1,
  ], 0, 0, Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE);
}