--TEST-- init object with custom home_dir --SKIPIF-- --FILE-- $homedir)); $gpg->seterrormode(gnupg::ERROR_WARNING); $gpg->import($testkey); $imported = false; foreach (glob("$homedir/*") as $filename) { $imported = true; } var_dump($imported); $engine = $gpg->getengineinfo(); var_dump($engine['home_dir'] === $homedir); ?> --EXPECT-- bool(true) bool(true) --CLEAN--