8000 minor #21783 [DependencyInjection] remove dead code (hhamon) · Deamon/symfony@22968cd · GitHub
[go: up one dir, main page]

Skip to content

Commit 22968cd

Browse files
minor symfony#21783 [DependencyInjection] remove dead code (hhamon)
This PR was merged into the 2.7 branch. Discussion ---------- [DependencyInjection] remove dead code | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | ~ | License | MIT | Doc PR | ~ This PR removes some dead code introduced 7 years ago (!!!) by a wrong merge :) Commits ------- 158b689 [DependencyInjection] removed dead code.
2 parents 8ddfc06 + 158b689 commit 22968cd

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,10 @@ public static function setUpBeforeClass()
3434

3535
public function testDump()
3636
{
37-
$dumper = new PhpDumper($container = new ContainerBuilder());
37+
$dumper = new PhpDumper(new ContainerBuilder());
3838

3939
$this->assertStringEqualsFile(self::$fixturesPath.'/php/services1.php', $dumper->dump(), '->dump() dumps an empty container as an empty PHP class');
4040
$this->assertStringEqualsFile(self::$fixturesPath.'/php/services1-1.php', $dumper->dump(array('class' => 'Container', 'base_class' => 'AbstractContainer', 'namespace' => 'Symfony\Component\DependencyInjection\Dump')), '->dump() takes a class and a base_class options');
41-
42-
$container = new ContainerBuilder();
43-
new PhpDumper($container);
4441
}
4542

4643
public function testDumpOptimizationString()

0 commit comments

Comments
 (0)
0