Пример #1
0
 public function testOutput()
 {
     $target = 'foo.example.com.';
     $cname = new CnameRdata();
     $cname->setTarget($target);
     $this->assertEquals($target, $cname->output());
 }
 /**
  * {@inheritdoc}
  */
 public function parse($data)
 {
     preg_match(self::CNAME_PATTERN, $data, $matches = []);
     $cname = new CnameRdata();
     $cname->setCname($matches['dest']);
     return new CnameRdata();
 }