File: gnupg_oo_init_file_name.phpt

package info (click to toggle)
php-gnupg 1.5.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 428 kB
  • sloc: ansic: 3,041; xml: 553; pascal: 117; makefile: 2
file content (21 lines) | stat: -rw-r--r-- 397 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--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"