mirror of
https://github.com/php-gnupg/php-gnupg.git
synced 2024-11-24 23:27:09 +00:00
Make a full clean up of the imported key in tests
This commit is contained in:
parent
99e95d975c
commit
2a07550357
1 changed files with 11 additions and 0 deletions
|
@ -17,5 +17,16 @@ class gnupgt {
|
|||
{
|
||||
@unlink(__DIR__ . "/pubring.gpg");
|
||||
@unlink(__DIR__ . "/secring.gpg");
|
||||
@unlink(__DIR__ . "/pubring.kbx");
|
||||
@unlink(__DIR__ . "/random_seed");
|
||||
@unlink(__DIR__ . "/sshcontrol");
|
||||
@unlink(__DIR__ . "/trustdb.gpg");
|
||||
$privKeyDir = __DIR__ . '/private-keys-v1.d';
|
||||
if (is_dir($privKeyDir)) {
|
||||
foreach (glob($privKeyDir . '/*.key') as $key) {
|
||||
unlink($key);
|
||||
}
|
||||
rmdir($privKeyDir);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue