| @@ 45-53 (lines=9) @@ | ||
| 42 | $aaaa->setAddress('abc'); |
|
| 43 | } |
|
| 44 | ||
| 45 | public function testFromText(): void |
|
| 46 | { |
|
| 47 | $text = '2003:dead:beef:4dad:23:46:bb:101'; |
|
| 48 | /** @var AAAA $aaaa */ |
|
| 49 | $aaaa = new AAAA(); |
|
| 50 | $aaaa->fromText($text); |
|
| 51 | ||
| 52 | $this->assertEquals($text, $aaaa->getAddress()); |
|
| 53 | } |
|
| 54 | ||
| 55 | /** |
|
| 56 | * @throws DecodeException |
|
| @@ 58-66 (lines=9) @@ | ||
| 55 | $this->assertEquals($address, $this->aRdata->toText()); |
|
| 56 | } |
|
| 57 | ||
| 58 | public function testFromText(): void |
|
| 59 | { |
|
| 60 | $text = '200.100.50.1'; |
|
| 61 | /** @var A $a */ |
|
| 62 | $a = new A(); |
|
| 63 | $a->fromText($text); |
|
| 64 | ||
| 65 | $this->assertEquals($text, $a->getAddress()); |
|
| 66 | } |
|
| 67 | ||
| 68 | /** |
|
| 69 | * @throws DecodeException |
|