Add complete coverage for init

This commit is contained in:
Jakub Zelenka 2018-06-04 19:29:56 +01:00
parent 587a5f9400
commit 1779a02f74
4 changed files with 81 additions and 1 deletions

View file

@ -18,12 +18,16 @@ 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--
<?php
foreach (glob(__DIR__ . '/init_oo_home/*') as $filename) {
$homedir = __DIR__ . '/init_oo_home';
foreach (glob($homedir . '/*') as $filename) {
unlink($filename);
}
rmdir($homedir);