aboutsummaryrefslogtreecommitdiffstats
path: root/tests/all_tests.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/all_tests.php')
-rw-r--r--tests/all_tests.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/all_tests.php b/tests/all_tests.php
index bae7725ee7..d1d711c4d7 100644
--- a/tests/all_tests.php
+++ b/tests/all_tests.php
@@ -28,7 +28,14 @@ require_once 'network/all_tests.php';
require_once 'random/all_tests.php';
// exclude the test directory from code coverage reports
-PHPUnit_Util_Filter::addDirectoryToFilter('./');
+if (version_compare(PHPUnit_Runner_Version::id(), '3.5.0') >= 0)
+{
+ PHP_CodeCoverage_Filter::getInstance()->addDirectoryToBlacklist('./');
+}
+else
+{
+ PHPUnit_Util_Filter::addDirectoryToFilter('./');
+}
class phpbb_all_tests
{