1--TEST-- 2Test is_dir() function: usage variations - invalid arguments 3--CONFLICTS-- 4obscure_filename 5--FILE-- 6<?php 7/* Passing invalid arguments to is_dir() */ 8 9echo "*** Testing is_dir() with Invalid arguments: expected bool(false) ***\n"; 10$dirnames = array( 11 /* Invalid dirnames */ 12 -2.34555, 13 TRUE, 14 FALSE, 15 NULL, 16 " ", 17 18 /* scalars */ 19 0, 20 1234 21); 22 23/* loop through to test each element the above array */ 24foreach($dirnames as $dirname) { 25 var_dump( is_dir($dirname) ); 26} 27?> 28--EXPECT-- 29*** Testing is_dir() with Invalid arguments: expected bool(false) *** 30bool(false) 31bool(false) 32bool(false) 33bool(false) 34bool(false) 35bool(false) 36bool(false) 37