Completed
Push — dev ( ce9639...c420bb )
by Josef
04:04
created

SuccessResponseTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A test() 0 14 1
1
<?php
2
3
namespace HelePartnerSyncApi\Response;
4
5
use PHPUnit_Framework_TestCase;
6
7
class SuccessResponseTest extends PHPUnit_Framework_TestCase
8
{
9
10
	public function test()
11
	{
12
		$data = array(
13
			'foo' => 'bar',
14
			'moo' => array(
15
				'baz',
16
			),
17
		);
18
		$response = new SuccessResponse('secret', $data);
19
20
		$this->assertSame('ok', $response->getMessage());
21
		$this->assertSame($data, $response->getData());
22
		$this->assertTrue($response->isSuccessful());
23
	}
24
25
}
26