Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
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 | |||
26 |