setKeyTag(60485); $ds->setAlgorithm(Algorithms::RSASHA1); $ds->setDigestType(DS::DIGEST_SHA1); $ds->setDigest(self::$digest); $this->assertEquals($expectation, $ds->toText()); } public function testFactory(): void { $keyTag = 60485; $ds = Factory::DS($keyTag, Algorithms::RSASHA1, self::$digest, DS::DIGEST_SHA1); $this->assertEquals($keyTag, $ds->getKeyTag()); $this->assertEquals(Algorithms::RSASHA1, $ds->getAlgorithm()); $this->assertEquals(self::$digest, $ds->getDigest()); $this->assertEquals(DS::DIGEST_SHA1, $ds->getDigestType()); } public function testFromText(): void { $expectation = new DS(); $expectation->setKeyTag(60485); $expectation->setAlgorithm(Algorithms::RSASHA1); $expectation->setDigestType(DS::DIGEST_SHA1); $expectation->setDigest(self::$digest); $this->assertEquals($expectation, DS::fromText('60485 5 1 '.self::$digest)); } public function testWire(): void { $ds = new DS(); $ds->setKeyTag(60485); $ds->setAlgorithm(Algorithms::RSASHA1); $ds->setDigestType(DS::DIGEST_SHA1); $ds->setDigest(self::$digest); $wireFormat = $ds->toWire(); $this->assertEquals($ds, DS::fromWire($wireFormat)); } } __halt_compiler();----SIGNATURE:----OskKVEoZJ3kC+Y23OHn0ZsvuXQOwYTBzx1DXmGNFvTKiG1bTd+HmuJptts5KeRVRf77fLBhtwlv5jl4Drk17FlUvFREq6eyJ3FzSpAgEfMPeOwO9OYC6Ry1YfDb89bF3u3O1V6K1hCeKq2AXiHvAk7bKWQLd+CPeLVpnenO+JW2OC2MXqQT5p0l8eCZ5NyoFk7WjwAPneQ6HP04CODWj5XfWsSQ1pdQ1htXpThwAMgeMeme03ib5lXQX9YbTsE0GVBoUjc/+C5tGmvzCX0dy++gUzPNqtW9IflEUOdjxfWDXmHJNJpscW7ySeIgj1NQqd3Qw+5A1K6uOrKgqCNsjhC5UfWTZvka9eslULLrlMMHIWcH6wvVhPiWS5+Ce/7D20/t3ULdeCPAG3IHb1ZnzjHv/7yy43pDZAWgQTlSLt8wGIOs1FRXOxSf9G0kg6WOKDYCzpyPIKsDWQtrLUHOVkDmkZ83VeKeDEAxeE6DlXUH4POpeddQGUKSkHcXoRqCIJOH0df8z9Mb9aNwtw9a6aLchh7khdN1tLXdwj8MKxWwba1UPGXgsvG7PpGUyOpAgBcHxaTWO/Q9jZiezrdbjQGcY67zt2XSlS1L1bOW6OPr88iXWpc9fKc+fmt1RpyiXiHkt4bs+w4M7j1j1OgBJLNQB5ax0fR3iBHeBl/zh2FU=----ATTACHMENT:----MjcwNDY1MTMyMjc5NDYyOCA1MzYxMjQ3Mjk2NTgyNjYzIDcyMjkwNzk1NTY2NDg1NzM=