示例#1
0
 /**
  * {@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;
 }
示例#2
0
 /**
  * Test the txt record
  *
  * @author Koen Blokland Visser
  * @author Richard Oosterhof
  */
 public function testTXTRecordTest()
 {
     $this->DNSCollection->setTXTRecords('txt1');
     $this->DNSCollection->setTXTRecords('txt2');
     $this->assertSame(['txt1', 'txt2'], $this->DNSCollection->getTXTRecords());
 }