Perhaps this should be split into two tests, because the Win32 paths don't work properly with PHP's dirname on Unix.
# Andi, could you verify that the expected output really # is correct?