@@ -281,12 +281,12 @@ public function testShouldBindCustomExecuteConsumptionAndUseCustomClientDestinat
281281 ->expects ($ driverInvoked )
282282 ->method ('createQueue ' )
283283 ->willReturnCallback (function (string $ queueName , bool $ prefix ) use ($ driverInvoked , $ defaultQueue , $ customQueue ) {
284- match ($ driverInvoked ->getInvocationCount ()) {
284+ match ($ driverInvoked ->getInvocationCount ()) {
285285 1 => $ this ->assertSame (['default ' , true ], [$ queueName , $ prefix ]),
286286 2 => $ this ->assertSame (['custom ' , true ], [$ queueName , $ prefix ]),
287287 };
288288
289- return $ driverInvoked ->getInvocationCount () === 1 ? $ defaultQueue : $ customQueue ;
289+ return 1 === $ driverInvoked ->getInvocationCount () ? $ defaultQueue : $ customQueue ;
290290 })
291291 ;
292292 $ consumerInvoked = $ this ->exactly (2 );
@@ -422,12 +422,12 @@ public function testShouldBindQueuesOnlyOnce()
422422 ->expects ($ invoked )
423423 ->method ('createQueue ' )
424424 ->willReturnCallback (function (string $ queueName , bool $ prefix ) use ($ defaultQueue , $ customQueue , $ invoked ) {
425- match ($ invoked ->getInvocationCount ()) {
425+ match ($ invoked ->getInvocationCount ()) {
426426 1 => $ this ->assertSame (['default ' , true ], [$ queueName , $ prefix ]),
427427 2 => $ this ->assertSame (['custom ' , true ], [$ queueName , $ prefix ]),
428428 };
429429
430- return $ invoked ->getInvocationCount () === 1 ? $ defaultQueue : $ customQueue ;
430+ return 1 === $ invoked ->getInvocationCount () ? $ defaultQueue : $ customQueue ;
431431 })
432432 ;
433433
@@ -437,7 +437,7 @@ public function testShouldBindQueuesOnlyOnce()
437437 ->expects ($ consumerInvoked )
438438 ->method ('bind ' )
439439 ->willReturnCallback (function ($ queueName , Processor $ argProcessor ) use ($ consumerInvoked , $ defaultQueue , $ processor , $ consumer , $ customQueue ) {
440- match ($ consumerInvoked ->getInvocationCount ()) {
440+ match ($ consumerInvoked ->getInvocationCount ()) {
441441 1 => $ this ->assertSame ([$ defaultQueue , $ processor ], [$ queueName , $ argProcessor ]),
442442 2 => $ this ->assertSame ([$ customQueue , $ processor ], [$ queueName , $ argProcessor ]),
443443 };
0 commit comments