3
* Horde_Crypt_Pgp tests involving the keyserver.
5
* @author Michael Slusarz <slusarz@horde.org>
7
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
9
* @subpackage UnitTests
12
class Horde_Crypt_PgpKeyserverTest extends Horde_Test_Case
16
protected function setUp()
18
$config = self::getConfig('CRYPT_TEST_CONFIG');
19
if (!$config || empty($config['crypt']['keyserver'])) {
20
$this->markTestSkipped('Keyserver test has not been enabled.');
23
if (!is_executable('/usr/bin/gpg')) {
24
$this->markTestSkipped('GPG binary not found at /usr/bin/gpg.');
27
$this->_pgp = Horde_Crypt::factory('Pgp', array(
28
'program' => '/usr/bin/gpg',
29
'temp' => sys_get_temp_dir()
33
public function testKeyserverRetrieve()
35
$this->_pgp->getPublicKeyserver('4DE5B969');
38
public function testKeyserverRetrieveByEmail()
42
$this->_pgp->getKeyID('jan@horde.org')