--TEST-- Test is_writable() and its alias is_writeable() function: usage variations - diff. path notations --SKIPIF-- --FILE-- getMessage(), "\n"; } try { var_dump( is_writeable($file) ); } catch (TypeError $e) { echo $e->getMessage(), "\n"; } $counter++; clearstatcache(); } echo "Done\n"; ?> --CLEAN-- --EXPECTF-- *** Testing is_writable(): usage variations *** -- Iteration 1 -- bool(true) bool(true) -- Iteration 2 -- bool(%s) bool(%s) -- Iteration 3 -- bool(true) bool(true) -- Iteration 4 -- bool(true) bool(true) -- Iteration 5 -- bool(false) bool(false) -- Iteration 6 -- bool(false) bool(false) -- Iteration 7 -- is_writable(): Argument #1 ($filename) must be a valid path, string given is_writeable(): Argument #1 ($filename) must be a valid path, string given -- Iteration 8 -- is_writable(): Argument #1 ($filename) must be a valid path, string given is_writeable(): Argument #1 ($filename) must be a valid path, string given -- Iteration 9 -- is_writable(): Argument #1 ($filename) must be a valid path, string given is_writeable(): Argument #1 ($filename) must be a valid path, string given -- Iteration 10 -- bool(true) bool(true) -- Iteration 11 -- bool(true) bool(true) Done