/** * {@inheritdoc} */ public function expect($type, $rule, $key, array $expected) { if ($type === self::ARecords) { $this->check($type, $rule, $key, $expected, $this->DNSCollection->getARecords()); } else { if ($type === self::AAAARecords) { $this->check($type, $rule, $key, $expected, $this->DNSCollection->getAAAARecords()); } else { if ($type === self::MXRecords) { $this->check($type, $rule, $key, $expected, $this->DNSCollection->getMXRecords()); } else { if ($type === self::TXTRecords) { $this->check($type, $rule, $key, $expected, $this->DNSCollection->getTXTRecords()); } else { if ($type === self::NSRecords) { $this->check($type, $rule, $key, $expected, $this->DNSCollection->getNSRecords()); } } } } } return $this; }
/** * Test the aaaa record * * @author Koen Blokland Visser * @author Richard Oosterhof */ public function testAAAARecordTest() { $this->DNSCollection->setARecords('FE80:0000:0000:0000:0202:B3FF'); $this->DNSCollection->setARecords('2001:cdba:0000:0000:3257.9652'); $this->assertSame(['FE80:0000:0000:0000:0202:B3FF', '2001:cdba:0000:0000:3257.9652'], $this->DNSCollection->getARecords()); }