From: Josie Messa Date: Mon, 10 Mar 2008 15:22:47 +0000 (+0000) Subject: - New tests for getcwd() function X-Git-Tag: BEFORE_NEW_PARAMETER_PARSE~634 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=705435eb9e736635ac5f223f01c3ecd65a761ea0;p=php - New tests for getcwd() function --- diff --git a/ext/standard/tests/dir/getcwd_basic.phpt b/ext/standard/tests/dir/getcwd_basic.phpt new file mode 100644 index 0000000000..ef720d0959 --- /dev/null +++ b/ext/standard/tests/dir/getcwd_basic.phpt @@ -0,0 +1,34 @@ +--TEST-- +Test getcwd() function : basic functionality +--FILE-- + +===DONE=== +--CLEAN-- + +--EXPECTF-- +*** Testing getcwd() : basic functionality *** +string(%d) "%s" +string(%d) "%s%egetcwd_basic" +===DONE=== diff --git a/ext/standard/tests/dir/getcwd_error.phpt b/ext/standard/tests/dir/getcwd_error.phpt new file mode 100644 index 0000000000..09ee254819 --- /dev/null +++ b/ext/standard/tests/dir/getcwd_error.phpt @@ -0,0 +1,29 @@ +--TEST-- +Test getcwd() function : error conditions - Incorrect number of arguments +--FILE-- + +===DONE=== +--EXPECTF-- +*** Testing getcwd() : error conditions *** + +-- Testing getcwd() function with one argument -- + +Warning: Wrong parameter count for getcwd() in %s on line %d +NULL +===DONE===