Skip to content

Commit 32dee2a

Browse files
committed
Skip abstract definitions in compiler passes
1 parent 5912c44 commit 32dee2a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Tests/DependencyInjection/Compiler/AddConsoleCommandPassTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,6 @@ public function visibilityProvider()
6262
);
6363
}
6464

65-
/**
66-
* @expectedException \InvalidArgumentException
67-
* @expectedExceptionMessage The service "my-command" tagged "console.command" must not be abstract.
68-
*/
6965
public function testProcessThrowAnExceptionIfTheServiceIsAbstract()
7066
{
7167
$container = new ContainerBuilder();
@@ -77,6 +73,8 @@ public function testProcessThrowAnExceptionIfTheServiceIsAbstract()
7773
$container->setDefinition('my-command', $definition);
7874

7975
$container->compile();
76+
77+
$this->assertSame(array(), $container->getParameter('console.command.ids'));
8078
}
8179

8280
/**

0 commit comments

Comments
 (0)