| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function test_to_array(): void |
||
| 13 | { |
||
| 14 | $array = [ |
||
| 15 | 'shortName' => 'Short Company name, Inc.', |
||
| 16 | 'longName' => 'Long Company name, Inc.', |
||
| 17 | ]; |
||
| 18 | |||
| 19 | $model = (new CompanyName())->fromArray($array); |
||
| 20 | |||
| 21 | self::assertEquals($array, $model->toArray()); |
||
| 22 | self::assertEquals($array['shortName'], $model->getShortName()); |
||
| 23 | self::assertEquals($array['longName'], $model->getLongName()); |
||
| 24 | } |
||
| 26 |