xref: /PHP-8.2/ext/standard/tests/file/mkdir-001.phpt (revision 26dfce7f)
1--TEST--
2mkdir() tests
3--FILE--
4<?php
5
6var_dump(mkdir("mkdir-001"));
7var_dump(mkdir("mkdir-001/subdir"));
8var_dump(rmdir("mkdir-001/subdir"));
9var_dump(rmdir("mkdir-001"));
10
11var_dump(mkdir("./mkdir-001"));
12var_dump(mkdir("./mkdir-001/subdir"));
13var_dump(rmdir("./mkdir-001/subdir"));
14var_dump(rmdir("./mkdir-001"));
15
16var_dump(mkdir(__DIR__."/mkdir-001"));
17var_dump(mkdir(__DIR__."/mkdir-001/subdir"));
18var_dump(rmdir(__DIR__."/mkdir-001/subdir"));
19var_dump(rmdir(__DIR__."/mkdir-001"));
20
21echo "Done\n";
22?>
23--EXPECT--
24bool(true)
25bool(true)
26bool(true)
27bool(true)
28bool(true)
29bool(true)
30bool(true)
31bool(true)
32bool(true)
33bool(true)
34bool(true)
35bool(true)
36Done
37