You are here

public function DumperTest::testObjectSupportDisabledButNoExceptions in Plug 7

File

lib/Symfony/yaml/Symfony/Component/Yaml/Tests/DumperTest.php, line 186

Class

DumperTest

Namespace

Symfony\Component\Yaml\Tests

Code

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');
}