diff options
author | Antony Dovgal <tony2001@php.net> | 2006-05-16 13:06:06 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2006-05-16 13:06:06 +0000 |
commit | 1feef82dc4d59d71d9b99dcae2e201f0dd70d1f3 (patch) | |
tree | 45738226bc47502dffe700e653704a613336af05 /ext/standard/tests/file/mkdir-001.phpt | |
parent | 3a830a30f4eacd837fe543e7279382ebee4ed99b (diff) | |
download | php-git-1feef82dc4d59d71d9b99dcae2e201f0dd70d1f3.tar.gz |
new mkdir tests
Diffstat (limited to 'ext/standard/tests/file/mkdir-001.phpt')
-rw-r--r-- | ext/standard/tests/file/mkdir-001.phpt | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/ext/standard/tests/file/mkdir-001.phpt b/ext/standard/tests/file/mkdir-001.phpt new file mode 100644 index 0000000000..be653da29a --- /dev/null +++ b/ext/standard/tests/file/mkdir-001.phpt @@ -0,0 +1,36 @@ +--TEST-- +mkdir() tests +--FILE-- +<?php + +var_dump(mkdir("testdir")); +var_dump(mkdir("testdir/subdir")); +var_dump(rmdir("testdir/subdir")); +var_dump(rmdir("testdir")); + +var_dump(mkdir("./testdir")); +var_dump(mkdir("./testdir/subdir")); +var_dump(rmdir("./testdir/subdir")); +var_dump(rmdir("./testdir")); + +var_dump(mkdir(dirname(__FILE__)."/testdir")); +var_dump(mkdir(dirname(__FILE__)."/testdir/subdir")); +var_dump(rmdir(dirname(__FILE__)."/testdir/subdir")); +var_dump(rmdir(dirname(__FILE__)."/testdir")); + +echo "Done\n"; +?> +--EXPECTF-- +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +bool(true) +Done |