ExchangeBindTest::testGetArguments()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 1
c 1
b 0
f 1
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php declare(strict_types = 1);
2
3
namespace Portiny\RabbitMQ\Tests\Exchange;
4
5
use PHPUnit\Framework\TestCase;
6
use Portiny\RabbitMQ\Exchange\ExchangeBind;
7
8
final class ExchangeBindTest extends TestCase
9
{
10
	/**
11
	 * @var ExchangeBind
12
	 */
13
	private $exchangeBind;
14
15
16
	protected function setUp(): void
17
	{
18
		$this->exchangeBind = new ExchangeBind('someDestination', 'routingKey', true, ['a' => 1]);
19
	}
20
21
22
	public function testGetDestination(): void
23
	{
24
		self::assertSame('someDestination', $this->exchangeBind->getDestination());
25
	}
26
27
28
	public function testGetRoutingKey(): void
29
	{
30
		self::assertSame('routingKey', $this->exchangeBind->getRoutingKey());
31
	}
32
33
34
	public function testIsNowait(): void
35
	{
36
		self::assertTrue($this->exchangeBind->isNowait());
37
	}
38
39
40
	public function testGetArguments(): void
41
	{
42
		self::assertSame(['a' => 1], $this->exchangeBind->getArguments());
43
	}
44
45
}
46