getHex() public method

Returns the hex for this SSH key
public getHex ( ) : string
return string
 public function testGetCommentHex()
 {
     $collection = $this->getMockBuilder(SSHKeys::class)->disableOriginalConstructor()->getMock();
     $collection->expects($this->once())->method('getUser')->willReturn((object) ['id' => '123']);
     $sshkey = new SSHKey((object) ['id' => '1234567890abcdef', 'key' => 'ssh-rsa AAAAB3xxx0uj+Q== dev@example.com'], ['collection' => $collection]);
     $this->assertEquals('12:34:56:78:90:ab:cd:ef', $sshkey->getHex());
     $this->assertEquals('*****@*****.**', $sshkey->getComment());
 }