1--TEST--
2Test chdir() function : error conditions - Non-existent directory
3--FILE--
4<?php
5/*
6 * Pass a directory that does not exist as $directory to chdir() to test behaviour
7 */
8
9echo "*** Testing chdir() : error conditions ***\n";
10
11$directory = __FILE__ . '/idonotexist';
12
13var_dump(chdir($directory));
14?>
15--EXPECTF--
16*** Testing chdir() : error conditions ***
17
18Warning: chdir(): %s (errno %d) in %s on line %d
19bool(false)
20