]> granicus.if.org Git - php/commitdiff
- Add dirname() test. Don't have time to create a real regression test
authorAndi Gutmans <andi@php.net>
Tue, 3 Oct 2000 16:48:48 +0000 (16:48 +0000)
committerAndi Gutmans <andi@php.net>
Tue, 3 Oct 2000 16:48:48 +0000 (16:48 +0000)
tests/testdirname [new file with mode: 0644]

diff --git a/tests/testdirname b/tests/testdirname
new file mode 100644 (file)
index 0000000..0cad9d8
--- /dev/null
@@ -0,0 +1,16 @@
+<?
+
+       function check_dirname($path)
+       {
+               print "dirname($path) == " . dirname($path) . "\n";
+       }
+       
+       check_dirname("/foo/");
+       check_dirname("/foo");
+       check_dirname("/foo/bar");
+       check_dirname("d:\\foo\\bar.inc");
+       check_dirname("/");
+       check_dirname(".../foo");
+       check_dirname("./foo");
+       check_dirname("foobar///");
+       check_dirname("c:\foo");
\ No newline at end of file