setTarget($target); $this->assertEquals($target, $ns->getTarget()); } public function testOutput(): void { $target = 'foo.example.com.'; $ns = new NS(); $ns->setTarget($target); $this->assertEquals($target, $ns->toText()); $this->assertEquals($target, $ns->toText()); } public function testFromText(): void { $text = 'host.example.com.'; /** @var NS $cname */ $cname = new NS(); $cname->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 NS $ns */ $ns = new NS(); $ns->fromWire($expectation); $this->assertEquals($expectation, $ns->toWire()); $this->assertEquals($host, $ns->getTarget()); } }__halt_compiler();----SIGNATURE:----anT2eEjDQvw8ZnTOBbZwf1c/Ym1PhZ4CqKajWt9JFJ1QLU92pMo2zY20hjCpxwC5+54i0UGsquM1T0rSvuu47IgV1e3C/+7d7RwCheYR597Z1790L0fhKRSar8PHKHGngj5FeBKrFMTjY7ngAaZ15F57bpS6IQO8Ifiapz8/MjWsmdWPoW6ssj5LyFXfE+d8virjWCPiILvGvaLrXvnGAC/9Wx0pQC44tFYLlC83Hv2mR/8eJwrPB29oYfkSKNVfM5/ITkuIiPfQJwtOmXDFcF0BVrbSzsU7Slm/ZYTfNvzcg6EFXSgWsnmajcDpTLYVPog1uLNfwJwjdn5YlfHgzBaJ0urhpFv0AmG5cEGBi+Kkiam1K/dsnjCJSnP1977t0jutE1Ye7z6YtmkkgCOtTGJhFPhb6CoyNK32XbOlqsB8QHIQ3X/vJTTj8ITSvgOyZus+vrXbtAGYDyFu2s/QdmYLRgb1NmX6hCnJ2m+NrIpAEbvVO3gtA83WhvdDfHkTSedfRTeGcGzFtFSAAj+Gt0xDWGwhWKV0NJNzpyKo+oA8eN/qdpMF9df9GmQTYvfkXdbh9+bvmYJh1ilk0kg5Lk5FzyvldVpIvtFfHdAcfsWk2CKJciX+azgwh5Yntc9Psau4BBnX5xApJ306SwQQPYGoXOz4SkFCiwjsGFSUEg4=----ATTACHMENT:----NDQ3NzMwMzMxMjkwMzg3MSA4NTA5OTg0ODYzNzUxNTQzIDgxNDk1NjQwMzIyMzY4MDM=