summaryrefslogtreecommitdiffstats
path: root/tests-skipcheck.inc.php
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-07-07 15:43:10 +0200
committerRemi Collet <remi@remirepo.net>2017-07-07 15:45:03 +0200
commite352e7d880853b15c950285b4938636aad93a2a1 (patch)
treecac642bd09c548b91de2f5393174bde762cf17db /tests-skipcheck.inc.php
parent6b21ee3b3cfa6d38fa661a30d372a1824217c8c1 (diff)
v1.2.8review
Diffstat (limited to 'tests-skipcheck.inc.php')
-rw-r--r--tests-skipcheck.inc.php29
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.");
- }
- }
-}