Return to disk.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / file |
1.1 misho 1: --TEST-- 2: disk_total_space() and disk_free_space() tests 3: --INI-- 4: precision=14 5: --SKIPIF-- 6: <?php 7: if (substr(PHP_OS, 0, 3) == 'WIN') { 8: die('skip not for Windows'); 9: } 10: ?> 11: --FILE-- 12: <?php 13: 14: var_dump(disk_free_space()); 15: var_dump(disk_total_space()); 16: 17: var_dump(disk_free_space(-1)); 18: var_dump(disk_total_space(-1)); 19: 20: var_dump(disk_free_space("/")); 21: var_dump(disk_total_space("/")); 22: 23: var_dump(disk_free_space("/some/path/here")); 24: var_dump(disk_total_space("/some/path/here")); 25: 26: echo "Done\n"; 27: ?> 28: --EXPECTF-- 29: Warning: disk_free_space() expects exactly 1 parameter, 0 given in %s on line %d 30: NULL 31: 32: Warning: disk_total_space() expects exactly 1 parameter, 0 given in %s on line %d 33: NULL 34: 35: Warning: disk_free_space(): No such file or directory in %s on line %d 36: bool(false) 37: 38: Warning: disk_total_space(): No such file or directory in %s on line %d 39: bool(false) 40: float(%d) 41: float(%d) 42: 43: Warning: disk_free_space(): No such file or directory in %s on line %d 44: bool(false) 45: 46: Warning: disk_total_space(): No such file or directory in %s on line %d 47: bool(false) 48: Done