mirror of
https://github.com/php-gnupg/php-gnupg.git
synced 2026-02-06 22:31:35 +00:00
Add gnupg_geterrorinfo and cover gnupg_geterror
This commit is contained in:
parent
e6c0456610
commit
474a2b9e97
7 changed files with 125 additions and 0 deletions
19
tests/gnupg_res_geterror.phpt
Normal file
19
tests/gnupg_res_geterror.phpt
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
--TEST--
|
||||
get error
|
||||
--SKIPIF--
|
||||
<?php if(!class_exists("gnupg")) die("skip"); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
require_once "gnupgt.inc";
|
||||
gnupgt::import_key();
|
||||
|
||||
$gpg = gnupg_init();
|
||||
var_dump(gnupg_geterror($gpg));
|
||||
?>
|
||||
--EXPECT--
|
||||
bool(false)
|
||||
--CLEAN--
|
||||
<?php
|
||||
require_once "gnupgt.inc";
|
||||
gnupgt::delete_key();
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue