1--TEST--
2Test 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
14echo "*** Testing getcwd() : basic functionality ***\n";
15
16//create temporary directory for test, removed in CLEAN section
17$directory = dirname(__FILE__) . "/getcwd_basic";
18mkdir($directory);
19
20var_dump(getcwd());
21chdir($directory);
22var_dump(getcwd());
23?>
24===DONE===
25--CLEAN--
26<?php
27$directory = dirname(__FILE__) . "/getcwd_basic";
28rmdir($directory);
29?>
30--EXPECTF--
31*** Testing getcwd() : basic functionality ***
32string(%d) "%s"
33string(%d) "%s%egetcwd_basic"
34===DONE===
35