public function InlineTest::testDump in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/symfony/yaml/Tests/InlineTest.php \Symfony\Component\Yaml\Tests\InlineTest::testDump()
File
- vendor/
symfony/ yaml/ Symfony/ Component/ Yaml/ Tests/ InlineTest.php, line 25
Class
Namespace
Symfony\Component\Yaml\TestsCode
public function testDump() {
$testsForDump = $this
->getTestsForDump();
foreach ($testsForDump as $yaml => $value) {
$this
->assertEquals($yaml, Inline::dump($value), sprintf('::dump() converts a PHP structure to an inline YAML (%s)', $yaml));
}
foreach ($this
->getTestsForParse() as $value) {
$this
->assertEquals($value, Inline::parse(Inline::dump($value)), 'check consistency');
}
foreach ($testsForDump as $value) {
$this
->assertEquals($value, Inline::parse(Inline::dump($value)), 'check consistency');
}
}