assertEquals($keyTag, $ds->getKeyTag()); $this->assertEquals(Algorithms::RSASHA1, $ds->getAlgorithm()); $this->assertEquals(self::$digest, $ds->getDigest()); $this->assertEquals(CDS::DIGEST_SHA1, $ds->getDigestType()); } public function testFromText(): void { $expectation = new CDS(); $expectation->setKeyTag(60485); $expectation->setAlgorithm(Algorithms::RSASHA1); $expectation->setDigestType(CDS::DIGEST_SHA1); $expectation->setDigest(self::$digest); $cds = CDS::fromText('60485 5 1 '.self::$digest); $this->assertInstanceOf(CDS::class, $cds); $this->assertEquals($expectation, $cds); } public function testWire(): void { $cds = new CDS(); $cds->setKeyTag(60485); $cds->setAlgorithm(Algorithms::RSASHA1); $cds->setDigestType(CDS::DIGEST_SHA1); $cds->setDigest(self::$digest); $wireFormat = $cds->toWire(); $fromWire = CDS::fromWire($wireFormat); $this->assertInstanceOf(CDS::class, $fromWire); $this->assertEquals($cds, $fromWire); } } __halt_compiler();----SIGNATURE:----aqcI7jlz+QmUo0rVwiMWhvsaMYwJtqpmxPfAICy1nxjYlQjA3AYJY7KpQUxtndC3pk83++wfWpQgiteEbrxxltU7Vt3PTyZu/8SzJsb31NFdtAsIEqjv4YREajMKLJLf3wFFnhb0D5+GkJXWA3lpJahEbBkLiRqOhtCEO9opGrWpGA0ZtC4BMKnRIhwq9XAtFYwOVstVyblJ1WeN6k3SCNv7fLdi77AOmJnUVUXXnW3PGDlEOPUIB1rYX36l9K7f2E2ZvxhoV0HStzPHc5xSWSsmtdarn+U6b0yFd9vWtkjwtiSX8781kE9WJd5WxWMAXEuZKSHbIlWkgeuU4JbF/98wWHJDWibCi+oy71ncc0Lu1NiQSq9HEqzdI0TI7piKRsTRaF4cUFAPYvLT+ERr1FjfsPcFEgx2F3PXkeAb/O7IqCZFqU9/ez8OIETg8UaU/BCvzR/0NrYia+MCArsLku25vxeZ06pb1sQmG39hJ34nECJSQ7Id7KMupB9NGYx0pgqe7IIhFD5nEdbKBM7x7J9broblPMjdamLyP8zUqvEFYdjD0/QaMj120Q3UHtesSYuxZsJ7jqUg7g1BkDAqCmk/LdXYOdExiYMoqUmkpeeXqVIKkixb0Slm0ICbQYDamKgUEqPVi5n4X6YYEKLMlq14SsWrwPohwgktzZPZxG0=----ATTACHMENT:----NDMzNzY0OTQ4MjYwMjU3MSAxMTM2NjE2MzU4NjU5Nzc0IDY0MTI4MzQwNzA0Mzk4MzU=