cvs: php4 /tests dirname.phpt
| From: | Sascha Schumann | Date: | Sun, 24 Dec 2000 14:40:37 +0000 |
| Subject: | cvs: php4 /tests dirname.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-3291@lists.php.net to get a copy of this message | ||
sas Sun Dec 24 06:40:37 2000 EDT
Modified files:
/php4/tests dirname.phpt
Log:
Sync the expected output with Linux dirname output. The test passes now.
Perhaps this should be split into two tests, because the
Win32 paths don't work properly with PHP's dirname on Unix.
Index: php4/tests/dirname.phpt
diff -u php4/tests/dirname.phpt:1.1 php4/tests/dirname.phpt:1.2
--- php4/tests/dirname.phpt:1.1 Wed Oct 4 00:33:21 2000
+++ php4/tests/dirname.phpt Sun Dec 24 06:40:37 2000
@@ -19,12 +19,12 @@
check_dirname("c:\foo");
?>
--EXPECT--
-dirname(/foo/) ==
-dirname(/foo) ==
+dirname(/foo/) == /
+dirname(/foo) == /
dirname(/foo/bar) == /foo
-dirname(d:\foo\bar.inc) ==
-dirname(/) ==
+dirname(d:\foo\bar.inc) == .
+dirname(/) == /
dirname(.../foo) == ...
dirname(./foo) == .
-dirname(foobar///) ==
-dirname(c:\foo) ==
+dirname(foobar///) == .
+dirname(c:\foo) == .