/** * @group accessors */ public function testGetId() { $subKey = new Crypt_GPG_SubKey(array('id' => '8C37DBD2A01B7976', 'algorithm' => Crypt_GPG_SubKey::ALGORITHM_ELGAMAL_ENC, 'fingerprint' => '8D2299D9C5C211128B32BBB0C097D9EC94C06363', 'length' => 2048, 'creation' => 1221785858, 'expiration' => 1421785858, 'canSign' => false, 'canEncrypt' => true, 'hasPrivate' => true)); $this->assertEquals('8C37DBD2A01B7976', $subKey->getId()); }