8000 minor #17816 [DependencyInjection] don't rely on deprecated YAML pars… · symfony/symfony@1dcf83c · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 1dcf83c

Browse files
committed
minor #17816 [DependencyInjection] don't rely on deprecated YAML parser feature (xabbuh)
This PR was merged into the 2.3 branch. Discussion ---------- [DependencyInjection] don't rely on deprecated YAML parser feature | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #17814 | License | MIT | Doc PR | see [failing tests for the 2.7 branch](https://travis-ci.org/symfony/symfony/jobs/109537695#L2238) Commits ------- c8d387f don't rely on deprecated YAML parser feature
2 parents 9b093c9 + c8d387f commit 1dcf83c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/DependencyInjection/Tests/Dumper/YamlDumperTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ public function testDump()
2828
{
2929
$dumper = new YamlDumper($container = new ContainerBuilder());
3030

31-
$this->assertEqualYamlStructure(self::$fixturesPath.'/yaml/services1.yml', $dumper->dump(), '->dump() dumps an empty container as an empty YAML file');
31+
$this->assertEqualYamlStructure(file_get_contents(self::$fixturesPath.'/yaml/services1.yml'), $dumper->dump(), '->dump() dumps an empty container as an empty YAML file');
3232
}
3333

3434
public function testAddParameters()
3535
{
3636
$container = include self::$fixturesPath.'/containers/container8.php';
3737
$dumper = new YamlDumper($container);
38-
$this->assertEqualYamlStructure(self::$fixturesPath.'/yaml/services8.yml', $dumper->dump(), '->dump() dumps parameters');
38+
$this->assertEqualYamlStructure(file_get_contents(self::$fixturesPath.'/yaml/services8.yml'), $dumper->dump(), '->dump() dumps parameters');
3939
}
4040

4141
public function testAddService()

0 commit comments

Comments
 (0)
0