--TEST-- Test disk_free_space and its alias diskfreespace() functions : Usage Variations --FILE-- getMessage(), "\n"; } try { var_dump( diskfreespace( $dir1 ) ); } catch (TypeError $e) { echo $e->getMessage(), "\n"; } $count++; } echo"\n--- Done ---"; ?> --CLEAN-- --EXPECTF-- *** Testing with a directory *** float(%d) float(%d) Testing for the return type *** bool(true) *** Testing with different directory combinations *** -- Iteration 1 -- float(%d) float(%d) -- Iteration 2 -- float(%d) float(%d) -- Iteration 3 -- float(%d) float(%d) -- Iteration 4 -- float(%d) float(%d) -- Iteration 5 -- float(%d) float(%d) -- Iteration 6 -- float(%d) float(%d) -- Iteration 7 -- float(%d) float(%d) -- Iteration 8 -- float(%d) float(%d) -- Iteration 9 -- disk_free_space(): Argument #1 ($directory) must be a valid path, string given diskfreespace(): Argument #1 ($directory) must be a valid path, string given -- Iteration 10 -- disk_free_space(): Argument #1 ($directory) must be a valid path, string given diskfreespace(): Argument #1 ($directory) must be a valid path, string given -- Iteration 11 -- disk_free_space(): Argument #1 ($directory) must be a valid path, string given diskfreespace(): Argument #1 ($directory) must be a valid path, string given -- Iteration 12 -- disk_free_space(): Argument #1 ($directory) must be a valid path, string given diskfreespace(): Argument #1 ($directory) must be a valid path, string given --- Done ---