You are here

public function InlineTest::testDump in Service Container 7.2

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

@dataProvider getTestsForDump

File

modules/providers/service_container_symfony/lib/Symfony/Component/Yaml/Tests/InlineTest.php, line 39

Class

InlineTest

Namespace

Symfony\Component\Yaml\Tests

Code

public function testDump($yaml, $value) {
  $this
    ->assertEquals($yaml, Inline::dump($value), sprintf('::dump() converts a PHP structure to an inline YAML (%s)', $yaml));
  $this
    ->assertSame($value, Inline::parse(Inline::dump($value)), 'check consistency');
}