From 49b94e8d64c590d15cd05e6e2c9699de0d253660 Mon Sep 17 00:00:00 2001 From: Peter Burnett Date: Wed, 21 Feb 2024 15:57:25 +1000 Subject: [PATCH] Unset class vars in test teardown --- tests/tool_dataflows_connector_compression_test.php | 4 ++++ tests/tool_dataflows_flow_compression_test.php | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/tests/tool_dataflows_connector_compression_test.php b/tests/tool_dataflows_connector_compression_test.php index b4d56a8d..e5bdebc0 100644 --- a/tests/tool_dataflows_connector_compression_test.php +++ b/tests/tool_dataflows_connector_compression_test.php @@ -45,6 +45,10 @@ protected function setUp(): void { set_config('gzip_exec_path', '/usr/bin/gzip', 'tool_dataflows'); } + protected function tearDown(): void { + $this->basedir = null; + } + /** * Creates a test dataflow * diff --git a/tests/tool_dataflows_flow_compression_test.php b/tests/tool_dataflows_flow_compression_test.php index ede4df22..77ea4596 100644 --- a/tests/tool_dataflows_flow_compression_test.php +++ b/tests/tool_dataflows_flow_compression_test.php @@ -58,6 +58,11 @@ protected function setUp(): void { set_config('permitted_dirs', $basedir, 'tool_dataflows'); } + protected function tearDown(): void { + $this->readdir = null; + $this->outdir = null; + } + /** * Creates a test dataflow *