Skip to content

Commit

Permalink
Bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorprogger committed Jan 12, 2025
1 parent 963142d commit 6aa0bd1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 64 deletions.
52 changes: 0 additions & 52 deletions src/Exception/NoKeyInPayloadException.php

This file was deleted.

12 changes: 0 additions & 12 deletions tests/Unit/FriendlyExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,9 @@
namespace Yiisoft\Queue\AMQP\Tests\Unit;

use Yiisoft\Queue\AMQP\Exception\ExchangeDeclaredException;
use Yiisoft\Queue\AMQP\Exception\NoKeyInPayloadException;

final class FriendlyExceptionTest extends UnitTestCase
{
public function testNoKeyInPayloadException(): void
{
$exception = new NoKeyInPayloadException(
'test',
['item1', 'item2']
);

self::assertSame('No key "test" in payload', $exception->getName());
$this->assertMatchesRegularExpression('/test/', $exception->getSolution());
}

public function testExchangeDeclaredException(): void
{
$exception = new ExchangeDeclaredException();
Expand Down

0 comments on commit 6aa0bd1

Please sign in to comment.