mirror of
https://github.com/php-gnupg/php-gnupg.git
synced 2024-11-21 22:17:09 +00:00
21 lines
377 B
Text
21 lines
377 B
Text
|
--TEST--
|
||
|
delete a key from the keyring
|
||
|
--SKIPIF--
|
||
|
<?php if(!class_exists("gnupg")) die("skip"); ?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
require_once "gnupgt.inc";
|
||
|
gnupgt::import_key();
|
||
|
|
||
|
$gpg = new gnupg();
|
||
|
$gpg->seterrormode(gnupg::ERROR_WARNING);
|
||
|
$ret = $gpg->deletekey($fingerprint,true);
|
||
|
var_dump($ret);
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
bool(true)
|
||
|
--CLEAN--
|
||
|
<?php
|
||
|
require_once "gnupgt.inc";
|
||
|
gnupgt::delete_key();
|
||
|
?>
|