Skip to content

Commit a2d482f

Browse files
authored
Merge pull request #1146 from masterjus/upgrade-php-amqplib
Upgrade php-amqplib to v3.0
2 parents ad8b334 + b95c869 commit a2d482f

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

pkg/amqp-lib/Tests/AmqpConsumerTest.php

+5-3
Original file line numberDiff line numberDiff 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

pkg/amqp-lib/Tests/AmqpProducerTest.php

+4-1
Original file line numberDiff line numberDiff 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()

pkg/amqp-lib/Tests/AmqpSubscriptionConsumerTest.php

+4-1
Original file line numberDiff line numberDiff 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
/**

pkg/amqp-lib/composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
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"

0 commit comments

Comments
 (0)