public function ParserTest::testCommentAtTheRootIndent in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/symfony/yaml/Tests/ParserTest.php \Symfony\Component\Yaml\Tests\ParserTest::testCommentAtTheRootIndent()
File
- vendor/
symfony/ yaml/ Symfony/ Component/ Yaml/ Tests/ ParserTest.php, line 610
Class
Namespace
Symfony\Component\Yaml\TestsCode
public function testCommentAtTheRootIndent() {
$this
->assertEquals(array(
'services' => array(
'app.foo_service' => array(
'class' => 'Foo',
),
'app/bar_service' => array(
'class' => 'Bar',
),
),
), Yaml::parse(<<<'EOF'
# comment 1
services:
# comment 2
# comment 3
app.foo_service:
class: Foo
# comment 4
# comment 5
app/bar_service:
class: Bar
EOF
));
}