$container =
new ContainerBuilder();
$container->
setParameter('kernel.environment',
$environment);
return $container;
} /**
* Tests without any consumers.
*
* @covers ::process
*/
public function testProcessNoConsumers() { $container =
$this->
buildContainer();
$container ->
register('consumer_id', __NAMESPACE__ . '\ValidConsumer'
);
$handler_pass =
new TaggedHandlersPass();
$handler_pass->
process($container);
$this->
assertCount(2,
$container->
getDefinitions());
$this->
assertFalse($container->
getDefinition('consumer_id'
)->
hasMethodCall('addHandler'
));
} /**
* Tests a required consumer with no handlers.
*
* @covers ::process
*/