| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | public function testCreate(): void |
||
| 14 | { |
||
| 15 | $type = Type::create('AirportSlotType', [ |
||
| 16 | TypeValue::create('BOS', 'Logan International Airport', ['Boston Logan']), |
||
| 17 | TypeValue::create('LGA', 'LaGuardia Airport', ['New York']), |
||
| 18 | ]); |
||
| 19 | |||
| 20 | $json = \file_get_contents(__DIR__ . '/../../../../Response/Data/directive_entity_type.json'); |
||
| 21 | $expected = \json_encode(\json_decode($json)); |
||
| 22 | $actual = \json_encode($type); |
||
| 23 | |||
| 24 | $this->assertSame($expected, $actual); |
||
| 25 | } |
||
| 27 |