diff options
author | Alexey Zakhlestin <indeyets@php.net> | 2008-10-21 13:38:57 +0000 |
---|---|---|
committer | Alexey Zakhlestin <indeyets@php.net> | 2008-10-21 13:38:57 +0000 |
commit | 374086f172de2b61115c95eec0a3d8120adf48a0 (patch) | |
tree | eda72f16f4bf3e467801f6b923ef3e64d0deaf9e | |
parent | 37c4e3c5ace7a7e693e5468955b8a5f3e381b890 (diff) | |
download | php-git-374086f172de2b61115c95eec0a3d8120adf48a0.tar.gz |
MFB: skip tests on systems without fnmatch() function (f.e.: old darwin)
-rw-r--r-- | ext/standard/tests/file/fnmatch_basic.phpt | 7 | ||||
-rw-r--r-- | ext/standard/tests/file/fnmatch_error.phpt | 7 | ||||
-rw-r--r-- | ext/standard/tests/file/fnmatch_variation.phpt | 7 |
3 files changed, 15 insertions, 6 deletions
diff --git a/ext/standard/tests/file/fnmatch_basic.phpt b/ext/standard/tests/file/fnmatch_basic.phpt index 76fdf9ed6d..9f8f4dbb4d 100644 --- a/ext/standard/tests/file/fnmatch_basic.phpt +++ b/ext/standard/tests/file/fnmatch_basic.phpt @@ -2,8 +2,11 @@ Test fnmatch() function: Basic functionality --SKIPIF-- <?php -if(substr(PHP_OS, 0, 3) == 'WIN') - die("skip do not run on Windows"); +if (substr(PHP_OS, 0, 3) == 'WIN') + die("skip do not run on Windows"); + +if (!function_exists('fnmatch')) + die("skip fnmatch() function is not available"); ?> --FILE-- <?php diff --git a/ext/standard/tests/file/fnmatch_error.phpt b/ext/standard/tests/file/fnmatch_error.phpt index 87505738e2..77a2a386e5 100644 --- a/ext/standard/tests/file/fnmatch_error.phpt +++ b/ext/standard/tests/file/fnmatch_error.phpt @@ -2,8 +2,11 @@ Test fnmatch() function: Error conditions --SKIPIF-- <?php -if(substr(PHP_OS, 0, 3) == 'WIN') - die("skip do not run on Windows"); +if (substr(PHP_OS, 0, 3) == 'WIN') + die("skip do not run on Windows"); + +if (!function_exists('fnmatch')) + die("skip fnmatch() function is not available"); ?> --FILE-- <?php diff --git a/ext/standard/tests/file/fnmatch_variation.phpt b/ext/standard/tests/file/fnmatch_variation.phpt index 008d4d5ab4..34cc0b8e4c 100644 --- a/ext/standard/tests/file/fnmatch_variation.phpt +++ b/ext/standard/tests/file/fnmatch_variation.phpt @@ -2,8 +2,11 @@ Test fnmatch() function: Variations --SKIPIF-- <?php -if(substr(PHP_OS, 0, 3) == 'WIN') - die("skip do not run on Windows"); +if (substr(PHP_OS, 0, 3) == 'WIN') + die("skip do not run on Windows"); + +if (!function_exists('fnmatch')) + die("skip fnmatch() function is not available"); ?> --FILE-- <?php |