Completed
Push — master ( 919a96...568a86 )
by wiese
73:55 queued 09:12
created

ResponseTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testAccessors() 0 12 1
1
<?php
2
3
declare( strict_types = 1 );
4
5
namespace WMDE\Fundraising\Frontend\Tests\Unit\Infrastructure\Sofort\Transfer;
6
7
use WMDE\Fundraising\Frontend\Infrastructure\Sofort\Transfer\Response;
8
use PHPUnit\Framework\TestCase;
9
10
/**
11
 * @covers \WMDE\Fundraising\Frontend\Infrastructure\Sofort\Transfer\Response
12
 */
13
class ResponseTest extends TestCase {
14
15
	public function testAccessors(): void {
16
		$response = new Response();
17
18
		$this->assertSame( '', $response->getPaymentUrl() );
19
		$this->assertSame( '', $response->getTransactionId() );
20
21
		$response->setPaymentUrl( 'foo.com' );
22
		$response->setTransactionId( '12345' );
23
24
		$this->assertSame( 'foo.com', $response->getPaymentUrl() );
25
		$this->assertSame( '12345', $response->getTransactionId() );
26
	}
27
}
28