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

ExchangeBindTest::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\Exchange;
5
6
use PHPUnit\Framework\TestCase;
7
use Portiny\RabbitMQ\Exchange\ExchangeBind;
8
9 View Code Duplication
final class ExchangeBindTest 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 ExchangeBind
13
	 */
14
	private $exchangeBind;
15
16
	protected function setUp(): void
17
	{
18
		$this->exchangeBind = new ExchangeBind('someDestination', 'routingKey', true, ['a' => 1]);
19
	}
20
21
	public function testGetDestination(): void
22
	{
23
		$this->assertSame('someDestination', $this->exchangeBind->getDestination());
24
	}
25
26
	public function testGetRoutingKey(): void
27
	{
28
		$this->assertSame('routingKey', $this->exchangeBind->getRoutingKey());
29
	}
30
31
	public function testIsNowait(): void
32
	{
33
		$this->assertTrue($this->exchangeBind->isNowait());
34
	}
35
36
	public function testGetArguments(): void
37
	{
38
		$this->assertSame(['a' => 1], $this->exchangeBind->getArguments());
39
	}
40
}
41