mirror of
https://github.com/php-gnupg/php-gnupg.git
synced 2026-02-05 05:41:34 +00:00
more tests
removed examples
This commit is contained in:
parent
f98e3c57e4
commit
ba4ad8960b
33 changed files with 478 additions and 121 deletions
35
tests/gnupg_res_listsignatures.phpt
Normal file
35
tests/gnupg_res_listsignatures.phpt
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
--TEST--n
|
||||
list signatures
|
||||
--FILE--
|
||||
<?php
|
||||
require_once(dirname(__FILE__)."/vars.inc");
|
||||
$gpg = gnupg_init();
|
||||
gnupg_seterrormode($gpg, GNUPG_ERROR_WARNING);
|
||||
$ret = gnupg_listsignatures($gpg, $fingerprint);
|
||||
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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue