]> granicus.if.org Git - php/commitdiff
* changed Andi's "testdirname" into a real regression test
authorStig Bakken <ssb@php.net>
Wed, 4 Oct 2000 07:33:21 +0000 (07:33 +0000)
committerStig Bakken <ssb@php.net>
Wed, 4 Oct 2000 07:33:21 +0000 (07:33 +0000)
# Andi, could you verify that the expected output really
# is correct?

tests/dirname.phpt [moved from tests/testdirname with 53% similarity]

similarity index 53%
rename from tests/testdirname
rename to tests/dirname.phpt
index 0cad9d8e32ff275e812af848b60f3826080b9d0d..0ab4ae7337da13dd07cde0043ed9486d212635c7 100644 (file)
@@ -1,4 +1,7 @@
-<?
+--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) ==