php-src/ext/standard/tests/file/is_writable_error.phpt

22 lines
533 B
Plaintext
Raw Normal View History

--TEST--
Test is_writable() and its alias is_writeable() function: error conditions
--FILE--
<?php
/* Prototype: bool is_writable ( string $filename );
Description: Tells whether the filename is writable.
is_writeable() is an alias of is_writable()
*/
echo "\n*** Testing is_writable() on non-existent file ***\n";
var_dump( is_writable(__DIR__."/is_writable") );
var_dump( is_writeable(__DIR__."/is_writable") );
echo "Done\n";
?>
--EXPECTF--
*** Testing is_writable() on non-existent file ***
bool(false)
bool(false)
Done