Skip to content

Commit

Permalink
Unset class vars in test teardown
Browse files Browse the repository at this point in the history
  • Loading branch information
Peterburnett committed Feb 21, 2024
1 parent 64e587a commit d12cb45
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/tool_dataflows_connector_compression_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
5 changes: 5 additions & 0 deletions tests/tool_dataflows_flow_compression_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit d12cb45

Please sign in to comment.