Class Crypt_KeyStore_Test

Description

Crypt_KeyStore unit test case.

Contains unit test cases for the majority of the public Crypt_KeyStore API.

Located in /Crypt/KeyStore/Test/KeyStoreTest.php (line 38)

PHPUnit_Framework_TestCase
   |
   --Crypt_KeyStore_Test
Method Summary
Crypt_KeyStore_Test __construct ([string $name = 'Crypt_KeyStoreTest'])
void setUp ()
void tearDown ()
void testAliases ()
void testCreateCSR ()
void testDeleteEntry ()
void testGetEntry ()
void testGetType ()
void testIsKeyEntry ()
void testLoad ()
void testSign ()
void testStore ()
void testVerify ()
Methods
Constructor __construct (line 50)

Constructs the unit test.

  • access: public
Crypt_KeyStore_Test __construct ([string $name = 'Crypt_KeyStoreTest'])
  • string $name: the name of the unit test
setUp (line 60)

Sets up the unit test.

  • access: public
void setUp ()
tearDown (line 76)

Tears down the unit test.

  • access: public
void tearDown ()
testAliases (line 133)

Test getting the list of aliases stored in the key store.

  • access: public
void testAliases ()
testContainsAlias (line 169)

Test the "contains alias" query.

  • access: public
void testContainsAlias ()
testCreateCSR (line 369)

Test creating a CSR.

  • access: public
void testCreateCSR ()
testCreateSecretKey (line 280)

Test creating a symmetric secret key.

  • access: public
void testCreateSecretKey ()
testDecryptAsymmetric (line 485)

Test decrypting encrypted text with asymmetric key pair.

  • access: public
void testDecryptAsymmetric ()
testDecryptSymmetric (line 507)

Test decrypting encrypted text with symmetric secret key.

  • access: public
void testDecryptSymmetric ()
testDeleteEntry (line 189)

Test deleting a key store entry.

  • access: public
void testDeleteEntry ()
testEncryptAsymmetric (line 441)

Test encrypting plain text with asymmetric key pair.

  • access: public
void testEncryptAsymmetric ()
testEncryptSymmetric (line 463)

Test encrypting plain text with symmetric secret key.

  • access: public
void testEncryptSymmetric ()
testEntryInstanceOf (line 106)

Test getting an instance of the default key store type.

  • access: public
void testEntryInstanceOf ()
testGetCertificateAlias (line 304)

Test retrieving the alias of a certificate.

  • access: public
void testGetCertificateAlias ()
testGetCertificateChain (line 326)

Test retrieving a certificate chain.

  • access: public
void testGetCertificateChain ()
testGetCreationDate (line 349)

Test getting an entry's creation date.

  • access: public
void testGetCreationDate ()
testGetDefaultType (line 86)

Test retrieving the default key store type.

  • access: public
void testGetDefaultType ()
testGetEntry (line 209)

Test retrieving a key store entry.

  • access: public
void testGetEntry ()
testGetType (line 421)

Test getting the key store's type.

  • access: public
void testGetType ()
testImportCertificate (line 399)

Tests the importing of a certificate.

  • access: public
void testImportCertificate ()
testIsCertificateEntry (line 253)

Test the "is certificate entry" query.

  • access: public
void testIsCertificateEntry ()
testIsKeyEntry (line 230)

Test the "is key entry" query.

  • access: public
void testIsKeyEntry ()
testLoad (line 579)

Test loading a key store from a file.

  • access: public
void testLoad ()
testSign (line 529)

Test signing data.

  • access: public
void testSign ()
testStore (line 626)

Test storing a key store to a file.

  • access: public
void testStore ()
testVerify (line 551)

Test verifying a signature.

  • access: public
void testVerify ()

Documentation generated on Tue, 08 Jul 2008 14:52:11 -0500 by phpDocumentor 1.4.2