1--TEST--
2Test is_dir() function: usage variations - dir/subdir
3--FILE--
4<?php
5/* Testing is_dir() with base and sub dirs */
6
7$file_path = __DIR__;
8
9echo "-- Testing is_dir() with an empty dir --\n";
10$dirname = $file_path."/is_dir_variation1";
11mkdir($dirname);
12var_dump( is_dir($dirname) );
13clearstatcache();
14
15echo "-- Testing is_dir() with a subdir in base dir --\n";
16$subdirname = $dirname."/is_dir_variation1_sub";
17mkdir($subdirname);
18var_dump( is_dir($subdirname) );
19var_dump( is_dir($dirname) );
20
21echo "\n*** Done ***";
22?>
23--CLEAN--
24<?php
25$file_path = __DIR__;
26$dir_name = $file_path."/is_dir_variation1";
27rmdir($dir_name."/is_dir_variation1_sub");
28rmdir($dir_name);
29?>
30--EXPECT--
31-- Testing is_dir() with an empty dir --
32bool(true)
33-- Testing is_dir() with a subdir in base dir --
34bool(true)
35bool(true)
36
37*** Done ***
38