Annotation of embedaddon/php/ext/standard/tests/dir/getcwd_basic.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test getcwd() function : basic functionality
        !             3: --FILE--
        !             4: <?php
        !             5: /* Prototype  : mixed getcwd(void)
        !             6:  * Description: Gets the current directory 
        !             7:  * Source code: ext/standard/dir.c 
        !             8:  */
        !             9: 
        !            10: /*
        !            11:  * Test basic functionality of getcwd()
        !            12:  */
        !            13: 
        !            14: echo "*** Testing getcwd() : basic functionality ***\n";
        !            15: 
        !            16: //create temporary directory for test, removed in CLEAN section
        !            17: $directory = dirname(__FILE__) . "/getcwd_basic";
        !            18: mkdir($directory);
        !            19: 
        !            20: var_dump(getcwd());
        !            21: chdir($directory);
        !            22: var_dump(getcwd());
        !            23: ?>
        !            24: ===DONE===
        !            25: --CLEAN--
        !            26: <?php
        !            27: $directory = dirname(__FILE__) . "/getcwd_basic";
        !            28: rmdir($directory);
        !            29: ?>
        !            30: --EXPECTF--
        !            31: *** Testing getcwd() : basic functionality ***
        !            32: string(%d) "%s"
        !            33: string(%d) "%s%egetcwd_basic"
        !            34: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>