From: Raghubansh Kumar Date: Mon, 16 Jul 2007 17:34:44 +0000 (+0000) Subject: New testcases X-Git-Tag: php-5.2.4RC1~137 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9aedbdda1dbbad346984efeedfae8211fc2e334;p=php New testcases --- diff --git a/ext/standard/tests/file/disk_free_space_error-win32.phpt b/ext/standard/tests/file/disk_free_space_error-win32.phpt new file mode 100644 index 0000000000..af322f482b --- /dev/null +++ b/ext/standard/tests/file/disk_free_space_error-win32.phpt @@ -0,0 +1,74 @@ +--TEST-- +Test disk_free_space and its alias diskfreespace() functions : error conditions +--SKIPIF-- + +--FILE-- + +--CLEAN-- + +--EXPECTF-- +*** Testing error conditions *** + +Warning: disk_free_space() expects exactly 1 parameter, 0 given in %s on line %d +NULL + +Warning: diskfreespace() expects exactly 1 parameter, 0 given in %s on line %d +NULL + +Warning: disk_free_space() expects exactly 1 parameter, 2 given in %s on line %d +NULL + +Warning: diskfreespace() expects exactly 1 parameter, 2 given in %s on line %d +NULL + +Warning: disk_free_space(): The system cannot find the path specified. + in %s on line %d +bool(false) + +Warning: diskfreespace(): The system cannot find the path specified. + in %s on line %d +bool(false) + +Warning: disk_free_space(): The directory name is invalid. + in %s on line %d +bool(false) + +Warning: diskfreespace(): The directory name is invalid. + in %s on line %d +bool(false) + +-- Done -- diff --git a/ext/standard/tests/file/disk_free_space_error.phpt b/ext/standard/tests/file/disk_free_space_error.phpt new file mode 100644 index 0000000000..ee5abc8e8a --- /dev/null +++ b/ext/standard/tests/file/disk_free_space_error.phpt @@ -0,0 +1,66 @@ +--TEST-- +Test disk_free_space and its alias diskfreespace() functions : error conditions +--SKIPIF-- + +--FILE-- + +--CLEAN-- + +--EXPECTF-- +*** Testing error conditions *** + +Warning: disk_free_space() expects exactly 1 parameter, 0 given in %s on line %d +NULL + +Warning: diskfreespace() expects exactly 1 parameter, 0 given in %s on line %d +NULL + +Warning: disk_free_space() expects exactly 1 parameter, 2 given in %s on line %d +NULL + +Warning: diskfreespace() expects exactly 1 parameter, 2 given in %s on line %d +NULL + +Warning: disk_free_space(): No such file or directory in %s on line %d +bool(false) + +Warning: diskfreespace(): No such file or directory in %s on line %d +bool(false) +float(%d) +float(%d) + +-- Done -- diff --git a/ext/standard/tests/file/disk_total_space_error-win32.phpt b/ext/standard/tests/file/disk_total_space_error-win32.phpt new file mode 100644 index 0000000000..19f3f93bef --- /dev/null +++ b/ext/standard/tests/file/disk_total_space_error-win32.phpt @@ -0,0 +1,55 @@ +--TEST-- +Test disk_total_space() function : error conditions +--SKIPIF-- + +--FILE-- + +--CLEAN-- + +--EXPECTF-- +*** Testing error conditions *** + +Warning: disk_total_space() expects exactly 1 parameter, 0 given in %s on line %d +NULL + +Warning: disk_total_space() expects exactly 1 parameter, 2 given in %s on line %d +NULL + +Warning: disk_total_space(): The system cannot find the path specified. + in %s on line %d +bool(false) + +Warning: disk_total_space(): The directory name is invalid. + in %s on line %d +bool(false) + +--- Done --- diff --git a/ext/standard/tests/file/disk_total_space_error.phpt b/ext/standard/tests/file/disk_total_space_error.phpt new file mode 100644 index 0000000000..4050997e8e --- /dev/null +++ b/ext/standard/tests/file/disk_total_space_error.phpt @@ -0,0 +1,51 @@ +--TEST-- +Test disk_total_space() function : error conditions +--SKIPIF-- + +--FILE-- + +--CLEAN-- + +--EXPECTF-- +*** Testing error conditions *** + +Warning: disk_total_space() expects exactly 1 parameter, 0 given in %s on line %d +NULL + +Warning: disk_total_space() expects exactly 1 parameter, 2 given in %s on line %d +NULL + +Warning: disk_total_space(): No such file or directory in %s on line %d +bool(false) +float(%d) + +--- Done ---