php-gnupg/tests/gnupg_oo_init_file_name.phpt

21 lines
397 B
Text
Raw Normal View History

2018-06-04 18:29:56 +00:00
--TEST--
init object with custom file_name
--SKIPIF--
<?php
if(!class_exists("gnupg")) {
die("skip");
}
if (!file_exists('/usr/bin/gpg')) {
die("skip /usr/bin/gpg does not exist");
}
?>
--FILE--
<?php
require_once "gnupgt.inc";
$gpg = new gnupg(array('file_name' => '/usr/bin/gpg'));
$engine = $gpg->getengineinfo();
var_dump($engine['file_name']);
?>
--EXPECT--
string(12) "/usr/bin/gpg"