PaymentResponseTest::testMerchantData()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 9
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 13
rs 9.9666
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