Completed
Push — master ( 170fde...562033 )
by Jan
03:08
created

PaymentResponseTest::testMerchantData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 14
rs 9.4286
cc 1
eloc 10
nc 1
nop 0
1
<?php
2
3
namespace SlevomatCsobGateway\Call;
4
5
use DateTimeImmutable;
6
7
class PaymentResponseTest extends \PHPUnit_Framework_TestCase
8
{
9
10
	public function testMerchantData()
11
	{
12
		$paymentResponse = new PaymentResponse(
13
			'123',
14
			new DateTimeImmutable(),
15
			new ResultCode(ResultCode::C0_OK),
16
			'foo message',
17
			null,
18
			null,
19
			'merchant data'
20
		);
21
22
		$this->assertSame('merchant data', $paymentResponse->getMerchantData());
23
	}
24
25
}
26