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 = NS::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 = NS::fromWire($expectation); $this->assertEquals($expectation, $ns->toWire()); $this->assertEquals($host, $ns->getTarget()); } } __halt_compiler();----SIGNATURE:----fKu1lXVa2L8ETvRxdt8y0D5glDuWXBiNd0eYX/ua4AA4saFsFuPB410OvAnHjkvbEGhm+aJYzoOuMYwEnmNRl8bD7yClx2Hw6Ij49/Fck9vX3xtviafGEY9rHtWa2PZhm4JVey+kHQpuIMr2m1gY4q2hgB11bZvyi+zHbMJDGvzE8EA9CDiN3keYs6Koriyp1AQDVgEPh8H1BykKJCKxAtMEG/sAEbXRuxch29aBMmh8wfQtpu17SdMiK9HsMqlc/V89hDdD5URkEkpAGkWqL7hQ7TeAxohzWJsnV8KJJnOYgbF0ZxT8Gcfj/IUHkcv82GvDRsvKi1txPk6l3t3zuzrgAqWh+QtWVujrEIIzrkLFMI+A1Bs/H+0FVAdRqMRycu7Uze8JIgQCMMUSAPsFNhAfgf5GeZn0mF5CBCPnhilsnmmCovRqjdlM58RX8x1faeFUgr/qmxwSyLpzL9m4JntihlOQ3s7989WXewcGhvG5IG7RIwgE4G22ZantY17x7pfMnYHsRDu8ofCiIpgYQYoqsX2a+66F1NOUTQh68OyHwRHFmak3TEYkzdNfO3eR3GHHpYIEOdHBANFSHhmT1bWxVqEK2mMf3m1NpBPYajav0wRxpVYO635lZVJHvw88dpj9J3utyPLT3AfGBTPEwEZdLm/FSUeBg19WEGdMk5E=----ATTACHMENT:----NTk3MTcwMjUxMTA0MTAyOCA1MjIwNzI4OTc4MjY0NTczIDM5MjUzMTc2NTI2NTMxNDU=