blob: e2a38412cdca59097a98d3d6351491147537fbd0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
--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
|