Annotation of embedaddon/php/ext/standard/tests/file/mkdir-001.phpt, revision 1.1.1.2
1.1 misho 1: --TEST--
2: mkdir() tests
3: --FILE--
4: <?php
5:
1.1.1.2 ! misho 6: var_dump(mkdir("mkdir-001"));
! 7: var_dump(mkdir("mkdir-001/subdir"));
! 8: var_dump(rmdir("mkdir-001/subdir"));
! 9: var_dump(rmdir("mkdir-001"));
1.1 misho 10:
1.1.1.2 ! misho 11: var_dump(mkdir("./mkdir-001"));
! 12: var_dump(mkdir("./mkdir-001/subdir"));
! 13: var_dump(rmdir("./mkdir-001/subdir"));
! 14: var_dump(rmdir("./mkdir-001"));
1.1 misho 15:
1.1.1.2 ! misho 16: var_dump(mkdir(dirname(__FILE__)."/mkdir-001"));
! 17: var_dump(mkdir(dirname(__FILE__)."/mkdir-001/subdir"));
! 18: var_dump(rmdir(dirname(__FILE__)."/mkdir-001/subdir"));
! 19: var_dump(rmdir(dirname(__FILE__)."/mkdir-001"));
1.1 misho 20:
21: echo "Done\n";
22: ?>
23: --EXPECTF--
24: bool(true)
25: bool(true)
26: bool(true)
27: bool(true)
28: bool(true)
29: bool(true)
30: bool(true)
31: bool(true)
32: bool(true)
33: bool(true)
34: bool(true)
35: bool(true)
36: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>