cvs: php-src(PHP_5_2) /ext/standard/tests/file filetype_variation2.phpt

From: Date: Wed, 15 Apr 2009 20:57:26 +0000
Subject: cvs: php-src(PHP_5_2) /ext/standard/tests/file filetype_variation2.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-57031@lists.php.net to get a copy of this message
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 <d_kelsey@uk.ibm.com> --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===

« previous php.cvs (#57031) next »