예제 #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 mx record
  *
  * @author Koen Blokland Visser
  * @author Richard Oosterhof
  */
 public function testNSRecordTest()
 {
     $this->DNSCollection->setNSRecords('ns0.transip.net');
     $this->DNSCollection->setNSRecords('ns1.transip.net');
     $this->assertSame(['ns0.transip.net', 'ns1.transip.net'], $this->DNSCollection->getNSRecords());
 }