@@ 89-98 (lines=10) @@ | ||
86 | $this->assertEquals($caa, $fromWire); |
|
87 | } |
|
88 | ||
89 | public function testToWireThrowsExceptionIfNotAllParametersAreSet(): void |
|
90 | { |
|
91 | $caa = new CAA(); |
|
92 | $caa->setTag(CAA::TAG_IODEF); |
|
93 | $caa->setValue('mailto:[email protected]'); |
|
94 | ||
95 | $this->expectException(\InvalidArgumentException::class); |
|
96 | $this->expectExceptionMessage('All CAA parameters must be set.'); |
|
97 | $caa->toWire(); |
|
98 | } |
|
99 | ||
100 | public function testToTextThrowsExceptionIfNotAllParametersAreSet(): void |
|
101 | { |
|
@@ 100-109 (lines=10) @@ | ||
97 | $caa->toWire(); |
|
98 | } |
|
99 | ||
100 | public function testToTextThrowsExceptionIfNotAllParametersAreSet(): void |
|
101 | { |
|
102 | $caa = new CAA(); |
|
103 | $caa->setFlag(0); |
|
104 | $caa->setTag(CAA::TAG_IODEF); |
|
105 | ||
106 | $this->expectException(\InvalidArgumentException::class); |
|
107 | $this->expectExceptionMessage('All CAA parameters must be set.'); |
|
108 | $caa->toText(); |
|
109 | } |
|
110 | } |
|
111 |