mirror of
https://github.com/php-gnupg/php-gnupg.git
synced 2024-11-21 22:17:09 +00:00
21 lines
397 B
Text
21 lines
397 B
Text
|
--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"
|