File tree Expand file tree Collapse file tree 3 files changed +9
-14
lines changed Expand file tree Collapse file tree 3 files changed +9
-14
lines changed Original file line number Diff line number Diff line change 66
77class RabbitMQConnectorTest extends TestCase
88{
9-
109 public function test_connect ()
1110 {
1211 $ config = [
@@ -40,5 +39,4 @@ public function test_connect()
4039
4140 $ this ->assertInstanceOf (RabbitMQQueue::class, $ queue );
4241 }
43-
44- }
42+ }
Original file line number Diff line number Diff line change 1515 */
1616class RabbitMQQueueTest extends TestCase
1717{
18-
1918 public function setUp ()
2019 {
2120 parent ::setUp ();
@@ -111,9 +110,9 @@ public function test_later()
111110
112111 // delayed queue
113112 $ this ->channel ->shouldReceive ('queue_bind ' )->with (
114- $ this ->config ['queue ' ] . '_deferred_ ' . $ delay ,
113+ $ this ->config ['queue ' ]. '_deferred_ ' . $ delay ,
115114 $ this ->config ['exchange_params ' ]['name ' ],
116- $ this ->config ['queue ' ] . '_deferred_ ' . $ delay
115+ $ this ->config ['queue ' ]. '_deferred_ ' . $ delay
117116 )->once ();
118117
119118 $ this ->channel ->shouldReceive ('basic_publish ' )->once ();
@@ -155,16 +154,17 @@ public function test_pop()
155154 $ this ->queue ->pop ();
156155 }
157156
158- public function test_setAttempts () {
157+ public function test_setAttempts ()
158+ {
159159 $ count = mt_rand ();
160160
161161 $ this ->queue ->setAttempts ($ count );
162162 }
163163
164- public function test_setCorrelationId () {
164+ public function test_setCorrelationId ()
165+ {
165166 $ id = str_random ();
166167
167168 $ this ->queue ->setCorrelationId ($ id );
168169 }
169-
170- }
170+ }
Original file line number Diff line number Diff line change 22
33class TestJob
44{
5-
65 public function handle ()
76 {
8-
97 }
10-
11- }
8+ }
You can’t perform that action at this time.
0 commit comments