You are here

public function DumperTest::testDumpObjectAsMap in Lockr 7.3

@dataProvider objectAsMapProvider

File

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

Class

DumperTest

Namespace

Symfony\Component\Yaml\Tests

Code

public function testDumpObjectAsMap($object, $expected) {
  $yaml = $this->dumper
    ->dump($object, 0, 0, Yaml::DUMP_OBJECT_AS_MAP);
  $this
    ->assertEquals($expected, Yaml::parse($yaml, Yaml::PARSE_OBJECT_FOR_MAP));
}