]> granicus.if.org Git - php/commitdiff
fix tests: do not run on MACOS
authorRaghubansh Kumar <kraghuba@php.net>
Wed, 29 Aug 2007 10:13:25 +0000 (10:13 +0000)
committerRaghubansh Kumar <kraghuba@php.net>
Wed, 29 Aug 2007 10:13:25 +0000 (10:13 +0000)
ext/standard/tests/file/fnmatch_basic.phpt
ext/standard/tests/file/fnmatch_error.phpt
ext/standard/tests/file/fnmatch_variation.phpt

index 6c8d0ca8a52f5f22f885a8ddb196541af4454257..debec49cc1210658e7aaaf778467946dd4d5c632 100644 (file)
@@ -2,9 +2,9 @@
 Test fnmatch() function: Basic functionality
 --SKIPIF--
 <?php
-if (substr(PHP_OS, 0, 3) == 'WIN') {
-    die('skip no fnmatch() on Windows');
-}
+if( (stristr(PHP_OS, "Mac")) || (stristr(PHP_OS, "Win")) )
+  die("skip do not run on MacOS/Windows");
+?>
 --FILE--
 <?php
 /* Prototype: bool fnmatch ( string $pattern, string $string [, int $flags] )
index 329e3475bea859919e45aabfee4e15af1172e1ea..4da8ab553a5dd76198ccd89e0388032947c98031 100644 (file)
@@ -2,9 +2,9 @@
 Test fnmatch() function: Error conditions
 --SKIPIF--
 <?php
-if (substr(PHP_OS, 0, 3) == 'WIN') {
-    die('skip no fnmatch() on Windows');
-}
+if( (stristr(PHP_OS, "Mac")) || (stristr(PHP_OS, "Win")) )
+  die("skip do not run on MacOS/Windows");
+?>
 --FILE--
 <?php
 /* Prototype: bool fnmatch ( string $pattern, string $string [, int $flags] )
index bf6d40baae4287c2026acc21dea57b698982de37..ee42455328a1efc8926c9de2cb7431bd7b0aad55 100644 (file)
@@ -2,9 +2,9 @@
 Test fnmatch() function: Variations
 --SKIPIF--
 <?php
-if (substr(PHP_OS, 0, 3) == 'WIN') {
-    die('skip no fnmatch() on Windows');
-}
+if( (stristr(PHP_OS, "Mac")) || (stristr(PHP_OS, "Win")) )
+  die("skip do not run on MacOS/Windows");
+?>
 --FILE--
 <?php
 /* Prototype: bool fnmatch ( string $pattern, string $string [, int $flags] )