mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
- Add dirname() test. Don't have time to create a real regression test
This commit is contained in:
parent
a1abfb7643
commit
897b701dee
16
tests/testdirname
Normal file
16
tests/testdirname
Normal file
@ -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");
|
Loading…
Reference in New Issue
Block a user