mirror of
https://github.com/php-gnupg/php-gnupg.git
synced 2026-07-27 16:12:40 +00:00
Refactore all test to be independent
This commit is contained in:
parent
3bb4d28798
commit
4aabe3c966
26 changed files with 303 additions and 105 deletions
21
tests/gnupgt.inc
Normal file
21
tests/gnupgt.inc
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
require_once __DIR__ . "/vars.inc";
|
||||
|
||||
class gnupgt {
|
||||
static function import_key()
|
||||
{
|
||||
global $testkey;
|
||||
|
||||
self::delete_key();
|
||||
|
||||
$gpg = new gnupg();
|
||||
$gpg->import($testkey);
|
||||
}
|
||||
|
||||
static function delete_key()
|
||||
{
|
||||
@unlink(__DIR__ . "/pubring.gpg");
|
||||
@unlink(__DIR__ . "/secring.gpg");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue