php-gnupg/tests/gnupg_oo_getengineinfo.phpt

30 lines
405 B
Text
Raw Normal View History

2018-05-31 19:41:56 +00:00
--TEST--
2021-02-14 19:18:00 +00:00
get engineinfo
2018-05-31 19:41:56 +00:00
--SKIPIF--
<?php if(!class_exists("gnupg")) die("skip"); ?>
--FILE--
<?php
require_once "gnupgt.inc";
gnupgt::import_key();
$gpg = new gnupg();
2021-02-14 19:18:00 +00:00
$ret = $gpg->getengineinfo();
2018-05-31 19:41:56 +00:00
var_dump($ret);
?>
--EXPECTF--
array(3) {
["protocol"]=>
int(0)
["file_name"]=>
string(%d) %s
["home_dir"]=>
string(0) ""
}
--CLEAN--
<?php
require_once "gnupgt.inc";
gnupgt::delete_key();
?>