1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 07:28:09 +02:00
Files
archived-php-src/ext/standard/tests/dir/getcwd_basic.phpt
T
Fabien Villepinte a555cc0b3d Clean DONE tags from tests
Remove most of the `===DONE===` tags and its variations.
Keep `===DONE===` if the test output otherwise becomes empty.

Closes GH-4872.
2019-11-07 21:31:47 +01:00

33 lines
662 B
PHP

--TEST--
Test getcwd() function : basic functionality
--FILE--
<?php
/* Prototype : mixed getcwd(void)
* Description: Gets the current directory
* Source code: ext/standard/dir.c
*/
/*
* Test basic functionality of getcwd()
*/
echo "*** Testing getcwd() : basic functionality ***\n";
//create temporary directory for test, removed in CLEAN section
$directory = __DIR__ . "/getcwd_basic";
mkdir($directory);
var_dump(getcwd());
chdir($directory);
var_dump(getcwd());
?>
--CLEAN--
<?php
$directory = __DIR__ . "/getcwd_basic";
rmdir($directory);
?>
--EXPECTF--
*** Testing getcwd() : basic functionality ***
string(%d) "%s"
string(%d) "%s%egetcwd_basic"