Skip to content

Commit

Permalink
AsyncMessage now implements the Message interface
Browse files Browse the repository at this point in the history
  • Loading branch information
iainmckay committed Sep 28, 2017
1 parent 5062478 commit d6b59f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/Async/AsyncMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@

namespace Prooph\ServiceBus\Async;

use Prooph\Common\Messaging\Message;

/**
* This interface is used to mark messages that are to be send via an async MessageProducer
*/
interface AsyncMessage
interface AsyncMessage extends Message
{
}
3 changes: 1 addition & 2 deletions tests/Container/BusFactoriesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,7 @@ public function it_decorates_router_with_async_switch_and_pulls_async_message_pr
AbstractBusFactory $busFactory
): void {
$container = $this->prophesize(ContainerInterface::class);
$message = $this->prophesize(Message::class);
$message->willImplement(AsyncMessage::class);
$message = $this->prophesize(AsyncMessage::class);
$messageFactory = $this->prophesize(MessageFactory::class);
$messageProducer = new NoopMessageProducer();
$container->get('noop_message_producer')->willReturn($messageProducer);
Expand Down

0 comments on commit d6b59f1

Please sign in to comment.