aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-06-11 16:04:23 +0200
committerJoas Schilling <nickvergessen@gmx.de>2013-06-11 16:04:23 +0200
commitfa8d5c7d209b616e9552e072e38242ef4e74aaca (patch)
treed8e450f0bdff43f9420890f387a912c231bcf656
parentd02f98c63530454700661fc80354d66207ed8b02 (diff)
downloadforums-fa8d5c7d209b616e9552e072e38242ef4e74aaca.tar
forums-fa8d5c7d209b616e9552e072e38242ef4e74aaca.tar.gz
forums-fa8d5c7d209b616e9552e072e38242ef4e74aaca.tar.bz2
forums-fa8d5c7d209b616e9552e072e38242ef4e74aaca.tar.xz
forums-fa8d5c7d209b616e9552e072e38242ef4e74aaca.zip
[ticket/11605] Remove unused copied_files property
PHPBB3-11605
-rw-r--r--tests/test_framework/phpbb_test_case_helpers.php10
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/test_framework/phpbb_test_case_helpers.php b/tests/test_framework/phpbb_test_case_helpers.php
index 8c91d357b8..50b2bf03ec 100644
--- a/tests/test_framework/phpbb_test_case_helpers.php
+++ b/tests/test_framework/phpbb_test_case_helpers.php
@@ -18,8 +18,6 @@ class phpbb_test_case_helpers
$this->test_case = $test_case;
}
- private $copied_files = array();
-
/**
* This should only be called once before the tests are run.
* This is used to copy the fixtures to the phpBB install
@@ -28,12 +26,10 @@ class phpbb_test_case_helpers
{
global $phpbb_root_path;
- $this->copied_files = array();
-
if (file_exists($phpbb_root_path . 'ext/'))
{
// First, move any extensions setup on the board to a temp directory
- $this->copied_files = $this->copy_dir($phpbb_root_path . 'ext/', $phpbb_root_path . 'store/temp_ext/');
+ $this->copy_dir($phpbb_root_path . 'ext/', $phpbb_root_path . 'store/temp_ext/');
// Then empty the ext/ directory on the board (for accurate test cases)
$this->empty_dir($phpbb_root_path . 'ext/');
@@ -42,7 +38,7 @@ class phpbb_test_case_helpers
// Copy our ext/ files from the test case to the board
foreach ($fixtures as $fixture)
{
- $this->copied_files = array_merge($this->copied_files, $this->copy_dir($fixtures_dir . $fixture, $phpbb_root_path . 'ext/' . $fixture));
+ $this->copy_dir($fixtures_dir . $fixture, $phpbb_root_path . 'ext/' . $fixture);
}
}
@@ -66,8 +62,6 @@ class phpbb_test_case_helpers
$this->empty_dir($phpbb_root_path . 'store/temp_ext/');
}
- $this->copied_files = array();
-
if (file_exists($phpbb_root_path . 'store/temp_ext/'))
{
$this->empty_dir($phpbb_root_path . 'store/temp_ext/');