Completed
Pull Request — master (#5)
by Jan
17:34 queued 02:37
created

PaymentResponseTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 0
cbo 3
dl 0
loc 19
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testMerchantData() 0 14 1
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