@@ -41,9 +41,9 @@ public function testSend()
41
41
public function testQueue ()
42
42
{
43
43
$ envelope1 = new Envelope (new \stdClass ());
44
- $ this ->transport ->send ($ envelope1 );
44
+ $ envelope1 = $ this ->transport ->send ($ envelope1 );
45
45
$ envelope2 = new Envelope (new \stdClass ());
46
- $ this ->transport ->send ($ envelope2 );
46
+ $ envelope2 = $ this ->transport ->send ($ envelope2 );
47
47
$ this ->assertSame ([$ envelope1 , $ envelope2 ], $ this ->transport ->get ());
48
48
$ this ->transport ->ack ($ envelope1 );
49
49
$ this ->assertSame ([$ envelope2 ], $ this ->transport ->get ());
@@ -54,9 +54,9 @@ public function testQueue()
54
54
public function testAcknowledgeSameMessageWithDifferentStamps ()
55
55
{
56
56
$ envelope1 = new Envelope (new \stdClass (), [new AnEnvelopeStamp ()]);
57
- $ this ->transport ->send ($ envelope1 );
57
+ $ envelope1 = $ this ->transport ->send ($ envelope1 );
58
58
$ envelope2 = new Envelope (new \stdClass (), [new AnEnvelopeStamp ()]);
59
- $ this ->transport ->send ($ envelope2 );
59
+ $ envelope2 = $ this ->transport ->send ($ envelope2 );
60
60
$ this ->assertSame ([$ envelope1 , $ envelope2 ], $ this ->transport ->get ());
61
61
$ this ->transport ->ack ($ envelope1 ->with (new AnEnvelopeStamp ()));
62
62
$ this ->assertSame ([$ envelope2 ], $ this ->transport ->get ());
@@ -67,21 +67,23 @@ public function testAcknowledgeSameMessageWithDifferentStamps()
67
67
public function testAck ()
68
68
{
69
69
$ envelope = new Envelope (new \stdClass ());
70
+ $ envelope = $ this ->transport ->send ($ envelope );
70
71
$ this ->transport ->ack ($ envelope );
71
72
$ this ->assertSame ([$ envelope ], $ this ->transport ->getAcknowledged ());
72
73
}
73
74
74
75
public function testReject ()
75
76
{
76
77
$ envelope = new Envelope (new \stdClass ());
78
+ $ envelope = $ this ->transport ->send ($ envelope );
77
79
$ this ->transport ->reject ($ envelope );
78
80
$ this ->assertSame ([$ envelope ], $ this ->transport ->getRejected ());
79
81
}
80
82
81
83
public function testReset ()
82
84
{
83
85
$ envelope = new Envelope (new \stdClass ());
84
- $ this ->transport ->send ($ envelope );
86
+ $ envelope = $ this ->transport ->send ($ envelope );
85
87
$ this ->transport ->ack ($ envelope );
86
88
$ this ->transport ->reject ($ envelope );
87
89
0 commit comments