Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public function testGetTypeCode(): void |
||
26 | { |
||
27 | $this->assertEquals(1, Types::getTypeCode('A')); |
||
28 | $this->assertEquals(1234, Types::getTypeCode('TYPE1234')); |
||
29 | |||
30 | $this->expectException(UnsupportedTypeException::class); |
||
31 | $this->expectExceptionMessage('RData type "XX" is not supported.'); |
||
32 | Types::getTypeCode('XX'); |
||
33 | } |
||
34 | } |
||
35 |