File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ public function testProduceAndConsumeOneMessage()
79
79
$ this ->assertInstanceOf (PsrMessage::class, $ requestMessage );
80
80
$ this ->assertEquals ('Hi Thomas! ' , $ requestMessage ->getBody ());
81
81
82
- $ replyMessage = $ promise ->getMessage ();
82
+ $ replyMessage = $ promise ->receive ();
83
83
$ this ->assertEquals ('Hi John! ' , $ replyMessage ->getBody ());
84
84
}
85
85
}
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ public function testOnReceiveShouldCallFinallyCallbackEvenIfExceptionThrown()
89
89
90
90
public function testOnReceiveShouldThrowExceptionIfCallbackReturnNotMessageInstance ()
91
91
{
92
- $ receivecb = function () use (& $ invokedReceive ) {
92
+ $ receivecb = function () {
93
93
return new \stdClass ();
94
94
};
95
95
You can’t perform that action at this time.
0 commit comments