1--TEST-- 2Test is_readable() function: usage variations - invalid file names 3--SKIPIF-- 4<?php 5require __DIR__ . '/../skipif_root.inc'; 6?> 7--FILE-- 8<?php 9/* test is_executable() with invalid arguments */ 10 11echo "*** Testing is_readable(): usage variations ***\n"; 12 13echo "\n*** Testing is_readable() on miscellaneous filenames ***\n"; 14$misc_files = array( 15 0, 16 1234, 17 -2.34555, 18 TRUE, 19 FALSE, 20 " ", 21); 22/* loop through to test each element in the above array 23 is a readable file */ 24foreach( $misc_files as $misc_file ) { 25 var_dump( is_readable($misc_file) ); 26 clearstatcache(); 27} 28 29echo "Done\n"; 30?> 31--EXPECT-- 32*** Testing is_readable(): usage variations *** 33 34*** Testing is_readable() on miscellaneous filenames *** 35bool(false) 36bool(false) 37bool(false) 38bool(false) 39bool(false) 40bool(false) 41Done 42