aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-02-04 15:24:25 +0100
committerMarc Alexander <admin@m-a-styles.de>2015-02-04 15:24:25 +0100
commitc1d644769f991604aa783f55c93984778a565eb4 (patch)
tree03f98b3eccb349953b71af94fb6634a48e619b7c
parent1e4853507abb3fc50d6d7edd048d3cf88e905f1c (diff)
downloadforums-c1d644769f991604aa783f55c93984778a565eb4.tar
forums-c1d644769f991604aa783f55c93984778a565eb4.tar.gz
forums-c1d644769f991604aa783f55c93984778a565eb4.tar.bz2
forums-c1d644769f991604aa783f55c93984778a565eb4.tar.xz
forums-c1d644769f991604aa783f55c93984778a565eb4.zip
[ticket/13577] Skip functional tests requiring fileinfo if not enabled
PHPBB3-13577
-rw-r--r--tests/functional/download_test.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/functional/download_test.php b/tests/functional/download_test.php
index 4e4995c21e..1e863210e6 100644
--- a/tests/functional/download_test.php
+++ b/tests/functional/download_test.php
@@ -66,6 +66,11 @@ class phpbb_functional_download_test extends phpbb_functional_test_case
public function test_download_accessible()
{
+ if (!class_exists('finfo'))
+ {
+ $this->markTestSkipped('Unable to run test with fileinfo disabled');
+ }
+
$this->load_ids(array(
'forums' => array(
'Download #1',
@@ -118,6 +123,11 @@ class phpbb_functional_download_test extends phpbb_functional_test_case
public function test_download_softdeleted_post()
{
+ if (!class_exists('finfo'))
+ {
+ $this->markTestSkipped('Unable to run test with fileinfo disabled');
+ }
+
$this->load_ids(array(
'forums' => array(
'Download #1',
@@ -180,6 +190,11 @@ class phpbb_functional_download_test extends phpbb_functional_test_case
public function test_download_softdeleted_topic()
{
+ if (!class_exists('finfo'))
+ {
+ $this->markTestSkipped('Unable to run test with fileinfo disabled');
+ }
+
$this->load_ids(array(
'forums' => array(
'Download #1',