mirror of
https://github.com/php/php-src.git
synced 2026-04-27 01:48:26 +02:00
6426420f61
* PHP-7.4: Replace dirname(__FILE__) by __DIR__ in tests
22 lines
533 B
PHP
22 lines
533 B
PHP
--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
|