setKeyTag(60485); $ta->setAlgorithm(Algorithms::RSASHA1); $ta->setDigestType(TA::DIGEST_SHA1); $ta->setDigest(self::$digest); $this->assertEquals($expectation, $ta->toText()); } public function testFactory(): void { $keyTag = 60485; $ta = Factory::TA($keyTag, Algorithms::RSASHA1, self::$digest, TA::DIGEST_SHA1); $this->assertEquals($keyTag, $ta->getKeyTag()); $this->assertEquals(Algorithms::RSASHA1, $ta->getAlgorithm()); $this->assertEquals(self::$digest, $ta->getDigest()); $this->assertEquals(TA::DIGEST_SHA1, $ta->getDigestType()); } public function testFromText(): void { $expectation = new TA(); $expectation->setKeyTag(60485); $expectation->setAlgorithm(Algorithms::RSASHA1); $expectation->setDigestType(TA::DIGEST_SHA1); $expectation->setDigest(self::$digest); $this->assertEquals($expectation, TA::fromText('60485 5 1 '.self::$digest)); } public function testWire(): void { $ta = new TA(); $ta->setKeyTag(60485); $ta->setAlgorithm(Algorithms::RSASHA1); $ta->setDigestType(TA::DIGEST_SHA1); $ta->setDigest(self::$digest); $wireFormat = $ta->toWire(); $this->assertEquals($ta, TA::fromWire($wireFormat)); } } __halt_compiler();----SIGNATURE:----NKKyWncquwEMP7FZuSEc/6eUp3ZGsq6bIQFPV06BBVT2CPyP4eeHQaFms+VHl9smcuswkZiwiyZHe9Y5WE+vGUTd6w4c7kHSj5OQ5bCxQJ9wD/uz9VmyhvX2XElUZYsBT27+BZ4oV9ShWJGU48FG0lJLuGP2sdWAmBQbzy51l/8I8yxUjMi1Z11z7TzDD33J3jJRqWqpQu4uLZN05iF+1O7E4rzMhnSXHPXsBrga3gjOe9VpkkzLog+hBxW5B1zJKR3ZjuLvogGRpCxmQjH/Nq71YiUNgUjlqi3NWt85mAhsE4bq6BZVB4Mv0MIlSFRqwahDrX8wLc8wz9iFB0ycp0kFFSoRv0awrDFvYGgfITNh//OB9MputgYDJazs6X3wc+2Dv50LqFNA8MFh6Zdc2Li+WMauU/VNkrcFl5+0Up9wJYUGS6xF5Gk59l5MTjyKauBWfexHvcCurHM7f0jAf52iwNVztbYb7/PZo0iQFuP+RHh1z2QaopPwUEihUZPHYTOaKwWglAclPFeb/kXFIV9FtVv19ZHdkciUArHJ0ARjEoX/lUG2fb5ErC3G+XkWp/PNjAMZ+QPOHPCgnuf88BYKB6EzjuPz4jyG88dBlrgsdeybgsGY1TLV3b7TYJ7v3sQ5JQmPnf0yycuBcD6dn5Z04XHEnh75Zsf+jZeBsoM=----ATTACHMENT:----OTY5MjExMjczNDUzODY1MyA4OTAxODYyNjEyMTMwNTMxIDE1NjU4MDgxODEwODM3ODg=