Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ee0ab0b

Browse files
committed
fixed unit tests & code style
1 parent 12a8974 commit ee0ab0b

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

‎composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@
7272
"kwn/php-rdkafka-stubs": "^2.0.3",
7373
"friendsofphp/php-cs-fixer": "^3.4",
7474
"dms/phpunit-arraysubset-asserts": "^0.2.1",
75-
"phpspec/prophecy-phpunit": "^2.0"
75+
"phpspec/prophecy-phpunit": "^2.0",
76+
"symfony/http-foundation": "^5.4|^6.0"
7677
},
7778
"autoload": {
7879
"psr-4": {
@@ -137,4 +138,3 @@
137138
}
138139
}
139140
}
140-

‎pkg/amqp-ext/Tests/Functional/AmqpCommonUseCasesTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,11 @@ public function testConsumerReceiveMessageFromTopicDirectly()
158158
$this->amqpContext->declareTopic($topic);
159159

160160
$consumer = $this->amqpContext->createConsumer($topic);
161-
//guard
161+
//guard
162162
$this->assertNull($consumer->receive(1000));
163163

164164
$message = $this->amqpContext->createMessage(__METHOD__);
165+
$message->setDeliveryTag(1);
165166

166167
$producer = $this->amqpContext->createProducer();
167168
$producer->send($topic, $message);
@@ -181,10 +182,11 @@ public function testConsumerReceiveMessageWithZeroTimeout()
181182
$this->amqpContext->declareTopic($topic);
182183

183184
$consumer = $this->amqpContext->createConsumer($topic);
184-
//guard
185+
//guard
185186
$this->assertNull($consumer->receive(1000));
186187

187188
$message = $this->amqpContext->createMessage(__METHOD__);
189+
$message->setDeliveryTag(1);
188190

189191
$producer = $this->amqpContext->createProducer();
190192
$producer->send($topic, $message);

‎pkg/enqueue-bundle/Profiler/MessageQueueCollector.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44

55
use Symfony\Component\HttpFoundation\Request;
66
use Symfony\Component\HttpFoundation\Response;
7-
use Throwable;
87

98
class MessageQueueCollector extends AbstractMessageQueueCollector
109
{
11-
public function collect(Request $request, Response $response, Throwable $exception = null): void
10+
public function collect(Request $request, Response $response, ?\Throwable $exception = null): void
1211
{
1312
$this->collectInternal($request, $response);
1413
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /