File tree 4 files changed +14
-6
lines changed
4 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,11 @@ public function testShouldImplementConsumerInterface()
27
27
28
28
public function testCouldBeConstructedWithContextAndQueueAsArguments ()
29
29
{
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
+ )
33
35
);
34
36
}
35
37
Original file line number Diff line number Diff line change @@ -25,7 +25,10 @@ class AmqpProducerTest extends TestCase
25
25
26
26
public function testCouldBeConstructedWithRequiredArguments ()
27
27
{
28
- new AmqpProducer ($ this ->createAmqpChannelMock (), $ this ->createContextMock ());
28
+ self ::assertInstanceOf (
29
+ AmqpProducer::class,
30
+ new AmqpProducer ($ this ->createAmqpChannelMock (), $ this ->createContextMock ())
31
+ );
29
32
}
30
33
31
34
public function testShouldImplementProducerInterface ()
Original file line number Diff line number Diff line change @@ -19,7 +19,10 @@ public function testShouldImplementSubscriptionConsumerInterface()
19
19
20
20
public function testCouldBeConstructedWithAmqpContextAndHeartbeatOnTickAsArguments ()
21
21
{
22
- new AmqpSubscriptionConsumer ($ this ->createAmqpContextMock (), $ heartbeatOnTick = true );
22
+ self ::assertInstanceOf (
23
+ AmqpSubscriptionConsumer::class,
24
+ new AmqpSubscriptionConsumer ($ this ->createAmqpContextMock (), $ heartbeatOnTick = true )
25
+ );
23
26
}
24
27
25
28
/**
Original file line number Diff line number Diff line change 7
7
"license" : " MIT" ,
8
8
"require" : {
9
9
"php" : " ^7.3|^8.0" ,
10
- "php-amqplib/php-amqplib" : " ^2.12.1 " ,
10
+ "php-amqplib/php-amqplib" : " ^3.0 " ,
11
11
"queue-interop/amqp-interop" : " ^0.8.2" ,
12
12
"queue-interop/queue-interop" : " ^0.8" ,
13
13
"enqueue/amqp-tools" : " ^0.10"
You can’t perform that action at this time.
0 commit comments