Conditions | 1 |
Paths | 1 |
Total Lines | 22 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function testAccessors(): void |
||
15 | { |
||
16 | $type = 1; |
||
17 | $data = ['foo' => 'bar']; |
||
18 | $backtrace = [0 => [1 => []]]; |
||
19 | $profile = [2 => [3 => []]]; |
||
20 | $note = [4 => [5 => []]]; |
||
21 | |||
22 | $response = new Response( |
||
23 | $type, |
||
24 | $data, |
||
25 | $backtrace, |
||
26 | $profile, |
||
27 | $note |
||
28 | ); |
||
29 | |||
30 | $this->assertEquals($type, $response->getType()); |
||
31 | $this->assertEquals($data, $response->getData()); |
||
32 | $this->assertEquals($backtrace, $response->getBacktrace()); |
||
33 | $this->assertEquals($profile, $response->getProfile()); |
||
34 | $this->assertEquals($note, $response->getNote()); |
||
35 | } |
||
36 | } |
||
37 |