summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorStig Bakken <ssb@php.net>2000-10-04 07:33:21 +0000
committerStig Bakken <ssb@php.net>2000-10-04 07:33:21 +0000
commitde527c2379ce1a204aea0d06970a68770ede6e2a (patch)
tree2d203049c75b9f6aa3c0683441fd43f3e6991943 /tests
parent5bcba1fadf999e75ee9017a1cd3f6f883d99fc1d (diff)
downloadphp-git-de527c2379ce1a204aea0d06970a68770ede6e2a.tar.gz
* changed Andi's "testdirname" into a real regression test
# Andi, could you verify that the expected output really # is correct?
Diffstat (limited to 'tests')
-rw-r--r--tests/dirname.phpt (renamed from tests/testdirname)18
1 files changed, 16 insertions, 2 deletions
diff --git a/tests/testdirname b/tests/dirname.phpt
index 0cad9d8e32..0ab4ae7337 100644
--- a/tests/testdirname
+++ b/tests/dirname.phpt
@@ -1,4 +1,7 @@
-<?
+--TEST--
+dirname test
+--FILE--
+<?php
function check_dirname($path)
{
@@ -13,4 +16,15 @@
check_dirname(".../foo");
check_dirname("./foo");
check_dirname("foobar///");
- check_dirname("c:\foo"); \ No newline at end of file
+ check_dirname("c:\foo");
+?>
+--EXPECT--
+dirname(/foo/) ==
+dirname(/foo) ==
+dirname(/foo/bar) == /foo
+dirname(d:\foo\bar.inc) ==
+dirname(/) ==
+dirname(.../foo) == ...
+dirname(./foo) == .
+dirname(foobar///) ==
+dirname(c:\foo) ==