setTarget($target); $this->assertEquals($target, $dname->getTarget()); } public function testOutput(): void { $target = 'foo.example.com.'; $dname = new DNAME(); $dname->setTarget($target); $this->assertEquals($target, $dname->toText()); $this->assertEquals($target, $dname->toText()); } public function testFromText(): void { $text = 'host.example.com.'; /** @var DNAME $cname */ $cname = DNAME::fromText($text); $this->assertEquals($text, $cname->getTarget()); } public function testWire(): void { $host = 'host.example.com.'; $expectation = chr(4).'host'.chr(7).'example'.chr(3).'com'.chr(0); /** @var DNAME $dname */ $dname = DNAME::fromWire($expectation); $this->assertEquals($expectation, $dname->toWire()); $this->assertEquals($host, $dname->getTarget()); } } __halt_compiler();----SIGNATURE:----G76C2QAdwLq9t3yNkKiC19Wd7oINSujqOgdDhRljeZidI+WkXb1Wy4UNyfobdd3bad4h1Go6S0+0rCPlcWshiJxZ/ah/5pu+cnSJRK1hoTjbS00ZX3wgwRzJP7V4XO7bfMnr68xPq1s4jUWvPDMURBlVoZON2rKKLcdeggzfvYcKl3EYITmtauHsgcWLupB7dFhAnyvE8AZKQArPVtvHgCuhRqFQUCeYTGxcu/KLHFp/w2kFYkbflnNBX/zHmhHFBX//CrY2m4pzMX7WObeA70Lu76XVfH0q9af8GSc9lYnJ97Wab4U6ugdaT7Iz8xVUXdByBn7fOyZsI/Bd1r+cjmh0clnFyVHZw1dfuyXuktUW9AUOS/wIuFP9PIm2ELjl6zhIWPVra/3lrUs69xFzMcSV5qGEgNeprcItIQQDVtIsP4kJrMOsDSCItb+DvE+rURtuzt1GdKWOSOcyvCiRi1O74NDFZgFo00HTKFcg9lWRFGmQ8WAJcUsC2ELdiWN/G8xVj0IC95kGbwE1HLFJSeg3Uvpz1Z4hh6pVCrK2LmwcYzE4ck9MXB21psT4vTNYnWLUZ0x1t/+jBwuNz0lKf5iRqA+BVi/l5WMuTSv0fWABl+sMYUwey5ZyPh9udmVKv/nTW11mQQ76Lnht+bGLXH9K2hToslVP24385/GWOUQ=----ATTACHMENT:----NjExNjE2MzM2Mjc5MzEzMCAyMjIzODM3NzQ4ODk0ODI3IDQxMzA3MTYxOTI0NDEwMzY=