mirror of
https://github.com/php-gnupg/php-gnupg.git
synced 2026-02-05 05:41:34 +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
|
|
@ -1,13 +1,15 @@
|
|||
--TEST--n
|
||||
--TEST--
|
||||
list signatures
|
||||
--SKIPIF--
|
||||
<?php if(!class_exists("gnupg")) die("skip"); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
require_once(dirname(__FILE__)."/vars.inc");
|
||||
require_once "gnupgt.inc";
|
||||
gnupgt::import_key();
|
||||
|
||||
$gpg = new gnupg();
|
||||
$gpg -> seterrormode(gnupg::ERROR_WARNING);
|
||||
$ret = $gpg -> listsignatures($fingerprint);
|
||||
$gpg->seterrormode(gnupg::ERROR_WARNING);
|
||||
$ret = $gpg->listsignatures($fingerprint);
|
||||
var_dump($ret);
|
||||
?>
|
||||
--EXPECT--
|
||||
|
|
@ -35,3 +37,8 @@ array(1) {
|
|||
}
|
||||
}
|
||||
}
|
||||
--CLEAN--
|
||||
<?php
|
||||
require_once "gnupgt.inc";
|
||||
gnupgt::delete_key();
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue