mirror of
https://github.com/php-gnupg/php-gnupg.git
synced 2024-11-22 22:37:10 +00:00
30 lines
414 B
Text
30 lines
414 B
Text
|
--TEST--
|
||
|
get keyinfo
|
||
|
--SKIPIF--
|
||
|
<?php if(!class_exists("gnupg")) die("skip"); ?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
require_once "gnupgt.inc";
|
||
|
gnupgt::import_key();
|
||
|
|
||
|
$gpg = new gnupg();
|
||
|
$ret = $gpg->getengineinfo($fingerprint);
|
||
|
var_dump($ret);
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
array(3) {
|
||
|
["protocol"]=>
|
||
|
int(0)
|
||
|
["file_name"]=>
|
||
|
string(%d) %s
|
||
|
["home_dir"]=>
|
||
|
string(0) ""
|
||
|
}
|
||
|
|
||
|
--CLEAN--
|
||
|
<?php
|
||
|
require_once "gnupgt.inc";
|
||
|
gnupgt::delete_key();
|
||
|
?>
|
||
|
|