diff options
author | Remi Collet <remi@remirepo.net> | 2017-07-07 15:43:10 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2017-07-07 15:43:10 +0200 |
commit | b81724946b80a74a1708372fb03c3a059b2781ac (patch) | |
tree | 9ad072d3f4955358269f7b739b1f29d513571b93 /tests-skipcheck.inc.php | |
parent | b2d84b66c7a216552878d563fcc297923011c7c0 (diff) |
v1.2.8
Diffstat (limited to 'tests-skipcheck.inc.php')
-rw-r--r-- | tests-skipcheck.inc.php | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/tests-skipcheck.inc.php b/tests-skipcheck.inc.php deleted file mode 100644 index 0d494a9..0000000 --- a/tests-skipcheck.inc.php +++ /dev/null @@ -1,29 +0,0 @@ -<?php -extension_loaded('timecop') or die('skip timecop module not available'); -if (isset($required_version)) { - if (version_compare(PHP_VERSION, $required_version, "<")) { - die("skip PHP ${required_version}+ required for this test"); - } -} -if (isset($required_func)) { - foreach ($required_func as $func_name) { - if (!function_exists($func_name)) { - die("skip $func_name() function is not available."); - } - } -} -if (isset($required_class)) { - foreach ($required_class as $class_name) { - if (!class_exists($class_name)) { - die("skip $class_name class is not available."); - } - } -} -if (isset($required_method)) { - foreach ($required_method as $v) { - list($class_name, $method_name) = $v; - if (!method_exists($class_name, $method_name)) { - die("skip $class_name::$method_name() method is not available."); - } - } -} |