55use Bernard \Envelope ;
66use Bernard \Event \EnvelopeEvent ;
77use Bernard \Event \RejectEnvelopeEvent ;
8- use Bernard \Message \DefaultMessage ;
8+ use Bernard \Message \PlainMessage ;
99use Psr \Log \AbstractLogger ;
1010use Psr \Log \LogLevel ;
1111use SimpleBus \BernardBundleBridge \EventListener \LoggerListener ;
@@ -31,7 +31,7 @@ public function setUp()
3131 */
3232 public function it_should_log_on_produce ()
3333 {
34- $ message = new DefaultMessage ('test ' , ['type ' => 'command ' ]);
34+ $ message = new PlainMessage ('test ' , ['type ' => 'command ' ]);
3535 $ envelope = new Envelope ($ message );
3636 $ event = new EnvelopeEvent ($ envelope , $ this ->getMock ('Bernard\Queue ' ));
3737
@@ -52,7 +52,7 @@ public function it_should_log_on_produce()
5252 */
5353 public function it_should_log_on_invoke ()
5454 {
55- $ message = new DefaultMessage ('test ' , ['type ' => 'event ' ]);
55+ $ message = new PlainMessage ('test ' , ['type ' => 'event ' ]);
5656 $ envelope = new Envelope ($ message );
5757 $ event = new EnvelopeEvent ($ envelope , $ this ->getMock ('Bernard\Queue ' ));
5858
@@ -74,7 +74,7 @@ public function it_should_log_on_invoke()
7474 public function it_should_log_on_reject ()
7575 {
7676 $ exception = new \RuntimeException ();
77- $ message = new DefaultMessage ('test ' , ['type ' => 'event ' ]);
77+ $ message = new PlainMessage ('test ' , ['type ' => 'event ' ]);
7878 $ envelope = new Envelope ($ message );
7979 $ event = new RejectEnvelopeEvent ($ envelope , $ this ->getMock ('Bernard\Queue ' ), $ exception );
8080
0 commit comments