From: Zoe Slattery Date: Fri, 23 Jan 2009 09:43:35 +0000 (+0000) Subject: fix tests X-Git-Tag: php-5.3.0beta1~53 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1efa1bae6483ac8ab4830307713c6b88f86e38e3;p=php fix tests --- diff --git a/ext/standard/tests/file/filetype_variation2.phpt b/ext/standard/tests/file/filetype_variation2.phpt index 95885757cd..2a8e471b78 100644 --- a/ext/standard/tests/file/filetype_variation2.phpt +++ b/ext/standard/tests/file/filetype_variation2.phpt @@ -1,5 +1,5 @@ --TEST-- -Test filetype() function: Variations +Test filetype() function: Check character type --CREDITS-- Dave Kelsey --SKIPIF-- @@ -7,6 +7,8 @@ Dave Kelsey if (substr(PHP_OS, 0, 3) == 'WIN') { die('skip no /dev on Windows'); } +if (!file_exists("/dev/console")) { + die('skip /dev/console not available); ?> --FILE-- +===DONE=== --EXPECTF-- -*** Testing filetype() with various types *** -- Checking for char -- char --- Checking for block -- -block - -*** Done *** +===DONE=== diff --git a/ext/standard/tests/file/filetype_variation3.phpt b/ext/standard/tests/file/filetype_variation3.phpt new file mode 100644 index 0000000000..505961dfa9 --- /dev/null +++ b/ext/standard/tests/file/filetype_variation3.phpt @@ -0,0 +1,28 @@ +--TEST-- +Test filetype() function: Check block device +--CREDITS-- +Dave Kelsey +--SKIPIF-- + +--FILE-- + +===DONE=== +--EXPECTF-- +-- Checking for block -- +block +===DONE===