summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-10-03 16:48:48 +0000
committerAndi Gutmans <andi@php.net>2000-10-03 16:48:48 +0000
commit897b701dee9603f8f34a36a7a8ef002e446c75ee (patch)
treed3fdd9fc0b45e7ff2310fbdac88ca6168ff8bcb5 /tests
parenta1abfb764352f5965ef1fb92d051be387e6271d3 (diff)
downloadphp-git-897b701dee9603f8f34a36a7a8ef002e446c75ee.tar.gz
- Add dirname() test. Don't have time to create a real regression test
Diffstat (limited to 'tests')
-rw-r--r--tests/testdirname16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/testdirname b/tests/testdirname
new file mode 100644
index 0000000000..0cad9d8e32
--- /dev/null
+++ b/tests/testdirname
@@ -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