blob: be0b434c2c4c007a5d04d2ddb1d1814258094499 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--TEST--
Test mkdir() and rmdir() functions : error conditions
--FILE--
<?php
/* Prototype: bool mkdir ( string $pathname [, int $mode [, bool $recursive [, resource $context]]] );
Description: Makes directory
Prototype: bool rmdir ( string $dirname [, resource $context] );
Description: Removes directory
*/
echo "\n*** Testing rmdir() on non-existent directory ***\n";
var_dump( rmdir("temp") );
echo "Done\n";
?>
--EXPECTF--
*** Testing rmdir() on non-existent directory ***
Warning: rmdir(temp): No such file or directory in %s on line %d
bool(false)
Done
|