use Symfony\Component\Messenger\Tests\Fixtures\UnionTypeArgumentHandler;
use Symfony\Component\Messenger\Tests\Fixtures\UnionTypeOneMessage;
use Symfony\Component\Messenger\Tests\Fixtures\UnionTypeTwoMessage;
use Symfony\Component\Messenger\Transport\Receiver\ReceiverInterface;
class MessengerPassTest extends TestCase
{ use ExpectDeprecationTrait;
public function testProcess() { $container =
$this->
getContainerBuilder($busId = 'message_bus'
);
$container ->
register(DummyHandler::
class, DummyHandler::
class) ->
addTag('messenger.message_handler'
) ;
$container ->
register(MissingArgumentTypeHandler::
class, MissingArgumentTypeHandler::
class) ->
addTag('messenger.message_handler',
['handles' => SecondMessage::
class]) ;
$container ->
register(DummyReceiver::
class, DummyReceiver::
class) ->
addTag('messenger.receiver'
) ;