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

index cc68924e49b9aa3e78da2254bf4175575fdc1cf5..322362e8bf4cfde8c2fe60906f8dd38fd3b415a2 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 2bbff237137fea64124710afc3b8b2a07823b494..4e27bb41ad7bd38d47340eb75525f0f6a4ce3563 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 c3a3bdd2b16d90f11b25211adcbd3e6b8997957c..03e8de72e8a592c1ab2ee5d6a147e326bf2b3e3e 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] )