mirror of
https://github.com/php-gnupg/php-gnupg.git
synced 2026-02-05 22:01:35 +00:00
Refactore all test to be independent
This commit is contained in:
parent
3bb4d28798
commit
4aabe3c966
26 changed files with 306 additions and 108 deletions
21
tests/gnupg_res_deletekey.phpt
Normal file
21
tests/gnupg_res_deletekey.phpt
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
--TEST--n
|
||||
delete a key from the keyring
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded("gnupg")) die("skip"); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
require_once "gnupgt.inc";
|
||||
gnupgt::import_key();
|
||||
|
||||
$gpg = gnupg_init();
|
||||
gnupg_seterrormode($gpg, GNUPG_ERROR_WARNING);
|
||||
$ret = gnupg_deletekey($gpg, $fingerprint,true);
|
||||
var_dump($ret);
|
||||
?>
|
||||
--EXPECT--
|
||||
bool(true)
|
||||
--CLEAN--
|
||||
<?php
|
||||
require_once "gnupgt.inc";
|
||||
gnupgt::delete_key();
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue