PaymentResponseTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
c 1
b 0
f 0
dl 0
loc 16
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testMerchantData() 0 13 1
1
<?php declare(strict_types = 1);
2
3
namespace SlevomatCsobGateway\Call;
4
5
use DateTimeImmutable;
6
use PHPUnit\Framework\TestCase;
7
8
class PaymentResponseTest extends TestCase
9
{
10
11
	public function testMerchantData(): void
12
	{
13
		$paymentResponse = new PaymentResponse(
14
			'123',
15
			new DateTimeImmutable(),
16
			ResultCode::get(ResultCode::C0_OK),
17
			'foo message',
18
			null,
19
			null,
20
			'merchant data'
21
		);
22
23
		self::assertSame('merchant data', $paymentResponse->getMerchantData());
24
	}
25
26
}
27