Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
- 'psalm.xml'
- 'tests/**'

name: bechmark
name: benchmark

permissions:
contents: read
Expand Down
3 changes: 0 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@
"yii",
"queue",
"async",
"gii",
"db",
"redis",
"rabbitmq",
"beanstalk",
"gearman",
"sqs"
],
"license": "BSD-3-Clause",
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/MessageFailureException.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function __construct(
) {
$messageId = IdEnvelope::fromMessage($queueMessage)->getId();
$exceptionMessage = sprintf(
"Processing of message %s is stopped because of an exception:\n%s.",
"Processing of message %s is stopped because of an exception:\n%s",
$messageId === null ? 'without ID' : "#$messageId",
$previous->getMessage(),
);
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/WorkerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ public function testMessageFailWithDefinitionHandlerException(): void
self::fail('Exception was not thrown.');
} catch (MessageFailureException $exception) {
self::assertSame($exception::class, MessageFailureException::class);
self::assertSame($exception->getMessage(), "Processing of message without ID is stopped because of an exception:\nTest exception.");
self::assertSame("Processing of message without ID is stopped because of an exception:\nTest exception", $exception->getMessage());
self::assertEquals(['test-data'], $exception->getQueueMessage()->getPayload());
} finally {
$messages = $logger->getMessages();
$this->assertNotEmpty($messages);
$this->assertStringContainsString(
"Processing of message without ID is stopped because of an exception:\nTest exception.",
"Processing of message without ID is stopped because of an exception:\nTest exception",
$messages[1]['message'],
);
}
Expand Down
Loading