php-gnupg/tests/gnupg_oo_listsignatures.phpt

44 lines
837 B
Text
Raw Normal View History

2018-05-17 19:15:14 +00:00
--TEST--
2006-05-18 19:32:32 +00:00
list signatures
2006-11-03 12:39:53 +00:00
--SKIPIF--
<?php if(!class_exists("gnupg")) die("skip"); ?>
2006-05-18 19:32:32 +00:00
--FILE--
<?php
2018-05-17 19:15:14 +00:00
require_once "gnupgt.inc";
gnupgt::import_key();
2006-05-18 19:32:32 +00:00
$gpg = new gnupg();
2018-05-17 19:15:14 +00:00
$gpg->seterrormode(gnupg::ERROR_WARNING);
$ret = $gpg->listsignatures($fingerprint);
2006-05-18 19:32:32 +00:00
var_dump($ret);
?>
--EXPECT--
array(1) {
["testkey (testkey) <test@example.net>"]=>
array(1) {
["2E96F141B3DD2B2E"]=>
array(8) {
["uid"]=>
string(36) "testkey (testkey) <test@example.net>"
["name"]=>
string(7) "testkey"
["email"]=>
string(16) "test@example.net"
["comment"]=>
string(7) "testkey"
["expires"]=>
int(0)
["revoked"]=>
bool(false)
["expired"]=>
bool(false)
["invalid"]=>
bool(false)
}
}
}
2018-05-17 19:15:14 +00:00
--CLEAN--
<?php
require_once "gnupgt.inc";
gnupgt::delete_key();
?>