diff options
author | David King <imkingdavid@gmail.com> | 2012-11-16 10:42:10 -0500 |
---|---|---|
committer | David King <imkingdavid@gmail.com> | 2012-11-16 17:06:00 -0500 |
commit | ba1acdca0364a9cd54c705d946fbae2144c59554 (patch) | |
tree | fc26568372ee2c1f288d6a118dd76030f4fab3af /tests/functional/extension_controller_test.php | |
parent | 1952a4f276930edd16ca51fd690ed3e7965071da (diff) | |
download | forums-ba1acdca0364a9cd54c705d946fbae2144c59554.tar forums-ba1acdca0364a9cd54c705d946fbae2144c59554.tar.gz forums-ba1acdca0364a9cd54c705d946fbae2144c59554.tar.bz2 forums-ba1acdca0364a9cd54c705d946fbae2144c59554.tar.xz forums-ba1acdca0364a9cd54c705d946fbae2144c59554.zip |
[feature/controller] Use warning instead of echo for copy() and unlink()
PHPBB3-10864
Diffstat (limited to 'tests/functional/extension_controller_test.php')
-rw-r--r-- | tests/functional/extension_controller_test.php | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/functional/extension_controller_test.php b/tests/functional/extension_controller_test.php index b1e910aeac..65a9c80df6 100644 --- a/tests/functional/extension_controller_test.php +++ b/tests/functional/extension_controller_test.php @@ -46,10 +46,7 @@ class phpbb_functional_extension_controller_test extends phpbb_functional_test_c foreach (self::$fixtures as $fixture) { - if (!copy("tests/functional/fixtures/ext/$fixture", "{$phpbb_root_path}ext/$fixture")) - { - echo 'Could not copy file ' . $fixture; - } + copy("tests/functional/fixtures/ext/$fixture", "{$phpbb_root_path}ext/$fixture"); } } @@ -62,10 +59,7 @@ class phpbb_functional_extension_controller_test extends phpbb_functional_test_c global $phpbb_root_path; foreach (self::$fixtures as $fixture) { - if (!unlink("{$phpbb_root_path}ext/$fixture")) - { - echo 'Could not delete file ' . $fixture; - } + unlink("{$phpbb_root_path}ext/$fixture"); } rmdir("{$phpbb_root_path}ext/foo/bar/config"); |