tony2001 Wed Apr 15 20:57:26 2009 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/file filetype_variation2.phpt
Log:
sync test with other branches
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/filetype_variation2.phpt?r1=1.1.2.1&r2=1.1.2.2&diff_format=u
Index: php-src/ext/standard/tests/file/filetype_variation2.phpt
diff -u php-src/ext/standard/tests/file/filetype_variation2.phpt:1.1.2.1
php-src/ext/standard/tests/file/filetype_variation2.phpt:1.1.2.2
--- php-src/ext/standard/tests/file/filetype_variation2.phpt:1.1.2.1 Tue Nov
25 11:31:25 2008
+++ php-src/ext/standard/tests/file/filetype_variation2.phpt Wed Apr 15
20:57:26 2009
@@ -1,5 +1,5 @@
--TEST--
-Test filetype() function: Variations
+Test filetype() function: Check character type
--CREDITS--
Dave Kelsey <[email protected]>
--SKIPIF--
@@ -7,6 +7,8 @@
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--
<?php
@@ -16,21 +18,11 @@
dir, block, link, file, and unknown.
*/
-echo "*** Testing filetype() with various types ***\n";
echo "-- Checking for char --\n";
print( filetype("/dev/console") )."\n";
-
-echo "-- Checking for block --\n";
-//we have cheated in our mac build by creating a ram0 block device.
-print( filetype("/dev/ram0") )."\n";
-
-echo "\n*** Done ***\n";
?>
+===DONE===
--EXPECTF--
-*** Testing filetype() with various types ***
-- Checking for char --
char
--- Checking for block --
-block
-
-*** Done ***
+===DONE===
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php