| Total Complexity | 3 |
| Total Lines | 66 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class MessageTest extends BaseUnitTestCase |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @return void |
||
| 14 | * @throws \Exception |
||
| 15 | */ |
||
| 16 | public function testAccessors(): void |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return void |
||
| 38 | * @throws \Exception |
||
| 39 | */ |
||
| 40 | public function testToArray(): void |
||
| 41 | { |
||
| 42 | $queryType = 1; |
||
| 43 | $query = []; |
||
| 44 | $options = new Options(); |
||
| 45 | |||
| 46 | $message = new Message($queryType, $query, $options); |
||
| 47 | |||
| 48 | $expectedResults = [ |
||
| 49 | 1, |
||
| 50 | $query, |
||
| 51 | (object) $options, |
||
| 52 | ]; |
||
| 53 | |||
| 54 | $this->assertEquals($expectedResults, $message->toArray()); |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return void |
||
| 59 | * @throws \Exception |
||
| 60 | */ |
||
| 61 | public function testJsonSerialize(): void |
||
| 76 | } |
||
| 77 | } |
||
| 78 |