File tree Expand file tree Collapse file tree 4 files changed +14
-6
lines changed Expand file tree Collapse file tree 4 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,11 @@ public function testShouldImplementConsumerInterface()
2727
2828 public function testCouldBeConstructedWithContextAndQueueAsArguments ()
2929 {
30- new AmqpConsumer (
31- $ this ->createContextMock (),
32- new AmqpQueue ('aName ' )
30+ self ::assertInstanceOf (AmqpConsumer::class,
31+ new AmqpConsumer (
32+ $ this ->createContextMock (),
33+ new AmqpQueue ('aName ' )
34+ )
3335 );
3436 }
3537
Original file line number Diff line number Diff line change @@ -25,7 +25,10 @@ class AmqpProducerTest extends TestCase
2525
2626 public function testCouldBeConstructedWithRequiredArguments ()
2727 {
28- new AmqpProducer ($ this ->createAmqpChannelMock (), $ this ->createContextMock ());
28+ self ::assertInstanceOf (
29+ AmqpProducer::class,
30+ new AmqpProducer ($ this ->createAmqpChannelMock (), $ this ->createContextMock ())
31+ );
2932 }
3033
3134 public function testShouldImplementProducerInterface ()
Original file line number Diff line number Diff line change @@ -19,7 +19,10 @@ public function testShouldImplementSubscriptionConsumerInterface()
1919
2020 public function testCouldBeConstructedWithAmqpContextAndHeartbeatOnTickAsArguments ()
2121 {
22- new AmqpSubscriptionConsumer ($ this ->createAmqpContextMock (), $ heartbeatOnTick = true );
22+ self ::assertInstanceOf (
23+ AmqpSubscriptionConsumer::class,
24+ new AmqpSubscriptionConsumer ($ this ->createAmqpContextMock (), $ heartbeatOnTick = true )
25+ );
2326 }
2427
2528 /**
Original file line number Diff line number Diff line change 77 "license" : " MIT" ,
88 "require" : {
99 "php" : " ^7.3|^8.0" ,
10- "php-amqplib/php-amqplib" : " ^2.12.1 " ,
10+ "php-amqplib/php-amqplib" : " ^3.0 " ,
1111 "queue-interop/amqp-interop" : " ^0.8.2" ,
1212 "queue-interop/queue-interop" : " ^0.8" ,
1313 "enqueue/amqp-tools" : " ^0.10"
You can’t perform that action at this time.
0 commit comments