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

SuccessResponseTest::test()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

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