cvs: php4 /tests dirname.phpt testdirname

From: Date: Wed, 04 Oct 2000 07:33:22 +0000
Subject: cvs: php4 /tests dirname.phpt testdirname
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-1931@lists.php.net to get a copy of this message
ssb Wed Oct 4 00:33:22 2000 EDT Added files: /php4/tests dirname.phpt Removed files: /php4/tests testdirname Log: * changed Andi's "testdirname" into a real regression test # Andi, could you verify that the expected output really # is correct? Index: php4/tests/dirname.phpt +++ php4/tests/dirname.phpt --TEST-- dirname test --FILE-- <?php 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"); ?> --EXPECT-- dirname(/foo/) == dirname(/foo) == dirname(/foo/bar) == /foo dirname(d:\foo\bar.inc) == dirname(/) == dirname(.../foo) == ... dirname(./foo) == . dirname(foobar///) == dirname(c:\foo) ==

« previous php.cvs (#1931) next »