Completed
Push — master ( 8ba281...57dab7 )
by Tomáš
07:15
created

QueueBindTest::testIsNowait()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
dl 4
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
declare(strict_types=1);
3
4
namespace Portiny\RabbitMQ\Tests\Queue;
5
6
use PHPUnit\Framework\TestCase;
7
use Portiny\RabbitMQ\Queue\QueueBind;
8
9 View Code Duplication
final class QueueBindTest extends TestCase
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
10
{
11
	/**
12
	 * @var QueueBind
13
	 */
14
	private $queueBind;
15
16
	protected function setUp(): void
17
	{
18
		$this->queueBind = new QueueBind('someExchange', 'routingKey', true, ['b' => 2]);
19
	}
20
21
	public function testGetExchange(): void
22
	{
23
		$this->assertSame('someExchange', $this->queueBind->getExchange());
24
	}
25
26
	public function testGetRoutingKey(): void
27
	{
28
		$this->assertSame('routingKey', $this->queueBind->getRoutingKey());
29
	}
30
31
	public function testIsNowait(): void
32
	{
33
		$this->assertTrue($this->queueBind->isNowait());
34
	}
35
36
	public function testGetArguments(): void
37
	{
38
		$this->assertSame(['b' => 2], $this->queueBind->getArguments());
39
	}
40
}
41