You are here

public function YamlTest::testParseAndDump in Service Container 7.2

Same name and namespace in other branches
  1. 7 modules/providers/service_container_symfony/lib/Symfony/Component/Yaml/Tests/YamlTest.php \Symfony\Component\Yaml\Tests\YamlTest::testParseAndDump()

File

modules/providers/service_container_symfony/lib/Symfony/Component/Yaml/Tests/YamlTest.php, line 18

Class

YamlTest

Namespace

Symfony\Component\Yaml\Tests

Code

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