From 2f99f8696aadaef5f7d0626cd67ca34176732262 Mon Sep 17 00:00:00 2001 From: Jakub Zelenka Date: Wed, 23 May 2018 20:47:15 +0100 Subject: [PATCH] Add initial test for object creation with home dir --- tests/gnupg_oo_init_home_dir.phpt | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 tests/gnupg_oo_init_home_dir.phpt diff --git a/tests/gnupg_oo_init_home_dir.phpt b/tests/gnupg_oo_init_home_dir.phpt new file mode 100644 index 0000000..3aceb23 --- /dev/null +++ b/tests/gnupg_oo_init_home_dir.phpt @@ -0,0 +1,31 @@ +--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) { + //var_dump($filename); + $imported = true; +} +var_dump($imported); +?> +--EXPECT-- +bool(true) +--CLEAN-- + \ No newline at end of file