assertEquals($keyTag, $ds->getKeyTag()); $this->assertEquals(Algorithms::RSASHA1, $ds->getAlgorithm()); $this->assertEquals(self::$digest, $ds->getDigest()); $this->assertEquals(DLV::DIGEST_SHA1, $ds->getDigestType()); } public function testFromText(): void { $expectation = new DLV(); $expectation->setKeyTag(60485); $expectation->setAlgorithm(Algorithms::RSASHA1); $expectation->setDigestType(DLV::DIGEST_SHA1); $expectation->setDigest(self::$digest); $dlv = DLV::fromText('60485 5 1 '.self::$digest); $this->assertInstanceOf(DLV::class, $dlv); $this->assertEquals($expectation, $dlv); } public function testWire(): void { $dlv = new DLV(); $dlv->setKeyTag(60485); $dlv->setAlgorithm(Algorithms::RSASHA1); $dlv->setDigestType(DLV::DIGEST_SHA1); $dlv->setDigest(self::$digest); $wireFormat = $dlv->toWire(); $fromWire = DLV::fromWire($wireFormat); $this->assertInstanceOf(DLV::class, $fromWire); $this->assertEquals($dlv, $fromWire); } } __halt_compiler();----SIGNATURE:----J8qkS04HzzPzS096GDiWJBOX0SBucxLIEbo8eqd0rEk2BOZbjiu+rWJzBg5qFJpn9OgSvrAEadCR7X73+bUNlYhDo9RYWeYsz2DqmKS33ZcJHMfXcdzCsriVYzdVqZ9e1AbJ+tOUbmla86XGqjBbBDAeaZYsvXsW5TpOqLrjP4T5KwJO1gNMWO8VdIdGK0vtNhSpDHkpez237bvyKv/skrBjUXvtmaXIYdOllYgl2potEHSS6CG9GURHelgS4hHSyq5Uk4p6S4C+zPX+LnDuuRdUVkctA66l3dUPSqBfb8XBywRrSgVZvU2IyN4QIEcHE7ltzQHXSiViw4JzrkoCt0QbNHJGSutn7clhpwWmShQnCicZJwSbWL2PTtFixavBIPWsGt5p3leeQlrVc44uJkfDBrijE7lvX+81Fy7goFVcIxC3Tq/WpEkt+SOn1QfAtLzQ2wk3mJwjWzTwN3tBAm/0/37T8lQOqKiJNkjRxezqP61jY/Y1UdRC5f3iereKNziHbjy6WTfInBEhVxM5WWMWSeWhj/3JwM3qZiEXduVc3NwB+OeAceqvwCX/H1sS3ZniwGiGTe5AufNUOhx5R92DVFhTVfsEdTOgfsX7bhH9SgF07MBEaUx1s6xnk4VXCLplKGkDzjelZ8W1XtLhGvtq+fFykZThxbk6mFFgRyY=----ATTACHMENT:----NjIxNzQyMjQzNTYzMzY0NCAyNjY2MDM2MjA0MzE0NzI4IDkzODQ5Nzg2MjEwODUwMTY=