You are here

public function YamlTest::testParseAndDump in Lockr 7.3

File

vendor/symfony/yaml/Tests/YamlTest.php, line 19

Class

YamlTest

Namespace

Symfony\Component\Yaml\Tests

Code

public function testParseAndDump() {
  $data = [
    'lorem' => 'ipsum',
    'dolor' => 'sit',
  ];
  $yml = Yaml::dump($data);
  $parsed = Yaml::parse($yml);
  $this
    ->assertEquals($data, $parsed);
}