php-gnupg/tests/gnupg_res_deletekey.phpt

21 lines
395 B
Text
Raw Normal View History

2006-11-03 12:39:53 +00:00
--TEST--n
delete a key from the keyring
2018-05-17 19:15:14 +00:00
--SKIPIF--
<?php if (!extension_loaded("gnupg")) die("skip"); ?>
2006-11-03 12:39:53 +00:00
--FILE--
<?php
2018-05-17 19:15:14 +00:00
require_once "gnupgt.inc";
gnupgt::import_key();
2006-11-03 12:39:53 +00:00
$gpg = gnupg_init();
gnupg_seterrormode($gpg, GNUPG_ERROR_WARNING);
$ret = gnupg_deletekey($gpg, $fingerprint,true);
var_dump($ret);
?>
--EXPECT--
bool(true)
2018-05-17 19:15:14 +00:00
--CLEAN--
<?php
require_once "gnupgt.inc";
gnupgt::delete_key();
?>