1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 22:41:20 +02:00
Files
archived-php-src/ext/standard/tests/dir/chdir_error2.phpt
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

25 lines
556 B
PHP

--TEST--
Test chdir() function : error conditions - Non-existent directory
--FILE--
<?php
/* Prototype : bool chdir(string $directory)
* Description: Change the current directory
* Source code: ext/standard/dir.c
*/
/*
* Pass a directory that does not exist as $directory to chdir() to test behaviour
*/
echo "*** Testing chdir() : error conditions ***\n";
$directory = __FILE__ . '/idonotexist';
var_dump(chdir($directory));
?>
--EXPECTF--
*** Testing chdir() : error conditions ***
Warning: chdir(): %s (errno %d) in %s on line %d
bool(false)