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:45:03 +0200 |
commit | e352e7d880853b15c950285b4938636aad93a2a1 (patch) | |
tree | cac642bd09c548b91de2f5393174bde762cf17db /tests-skipcheck.inc.php | |
parent | 6b21ee3b3cfa6d38fa661a30d372a1824217c8c1 (diff) |
v1.2.8review
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."); - } - } -} |