You are here

public function InlineTest::testDump in Lockr 7.3

@dataProvider getTestsForDump

File

vendor/symfony/yaml/Tests/InlineTest.php, line 118

Class

InlineTest

Namespace

Symfony\Component\Yaml\Tests

Code

public function testDump($yaml, $value, $parseFlags = 0) {
  $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), $parseFlags), 'check consistency');
}