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