From c9aedbdda1dbbad346984efeedfae8211fc2e334 Mon Sep 17 00:00:00 2001 From: Raghubansh Kumar Date: Mon, 16 Jul 2007 17:34:44 +0000 Subject: [PATCH] New testcases --- .../file/disk_free_space_error-win32.phpt | 74 +++++++++++++++++++ .../tests/file/disk_free_space_error.phpt | 66 +++++++++++++++++ .../file/disk_total_space_error-win32.phpt | 55 ++++++++++++++ .../tests/file/disk_total_space_error.phpt | 51 +++++++++++++ 4 files changed, 246 insertions(+) create mode 100644 ext/standard/tests/file/disk_free_space_error-win32.phpt create mode 100644 ext/standard/tests/file/disk_free_space_error.phpt create mode 100644 ext/standard/tests/file/disk_total_space_error-win32.phpt create mode 100644 ext/standard/tests/file/disk_total_space_error.phpt 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 --- -- 2.50.1