diff options
Diffstat (limited to 'tests/PHPUnit/Framework/TestCase/SystemTestCase.php')
-rwxr-xr-x | tests/PHPUnit/Framework/TestCase/SystemTestCase.php | 5 |
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'; |