Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/PHPUnit/Framework/TestCase/SystemTestCase.php')
-rwxr-xr-xtests/PHPUnit/Framework/TestCase/SystemTestCase.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/PHPUnit/Framework/TestCase/SystemTestCase.php b/tests/PHPUnit/Framework/TestCase/SystemTestCase.php
index 40ee09eaae..b7b2f2f555 100755
--- a/tests/PHPUnit/Framework/TestCase/SystemTestCase.php
+++ b/tests/PHPUnit/Framework/TestCase/SystemTestCase.php
@@ -104,6 +104,11 @@ abstract class SystemTestCase extends PHPUnit_Framework_TestCase
return strpos(PHP_VERSION, '5.3') === 0;
}
+ public static function isPhp7orLater()
+ {
+ return version_compare('7.0.0-dev', PHP_VERSION) < 1;
+ }
+
public static function isMysqli()
{
return getenv('MYSQL_ADAPTER') == 'MYSQLI';