@@ 35-43 (lines=9) @@ | ||
32 | $this->assertEquals('2 foo.example.com.', $afsdb->toText()); |
|
33 | } |
|
34 | ||
35 | public function testOutputThrowsExceptionWhenMissingSubType(): void |
|
36 | { |
|
37 | $afsdb = new AFSDB(); |
|
38 | $afsdb->setHostname('foo.example.com.'); |
|
39 | ||
40 | $this->expectException(\InvalidArgumentException::class); |
|
41 | $this->expectExceptionMessage('No sub-type has been set on AFSDB object.'); |
|
42 | $afsdb->toText(); |
|
43 | } |
|
44 | ||
45 | public function testOutputThrowsExceptionWhenMissingHostname(): void |
|
46 | { |
|
@@ 45-53 (lines=9) @@ | ||
42 | $afsdb->toText(); |
|
43 | } |
|
44 | ||
45 | public function testOutputThrowsExceptionWhenMissingHostname(): void |
|
46 | { |
|
47 | $afsdb = new AFSDB(); |
|
48 | $afsdb->setSubType(15); |
|
49 | ||
50 | $this->expectException(\InvalidArgumentException::class); |
|
51 | $this->expectExceptionMessage('No hostname has been set on AFSDB object.'); |
|
52 | $afsdb->toText(); |
|
53 | } |
|
54 | ||
55 | public function testFromText(): void |
|
56 | { |