# Andi, could you verify that the expected output really
# is correct?
-<?
+--TEST--
+dirname test
+--FILE--
+<?php
function check_dirname($path)
{
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) ==