From: Josie Messa Date: Tue, 26 Feb 2008 09:34:29 +0000 (+0000) Subject: - committed chdir() tests in wrong directory X-Git-Tag: BEFORE_NEW_PARAMETER_PARSE~734 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=40a4cf4fea3cc6de245ed7239a9ba75f5aa22a9a;p=php - committed chdir() tests in wrong directory --- diff --git a/ext/standard/tests/array/chdir_basic.phpt b/ext/standard/tests/array/chdir_basic.phpt deleted file mode 100644 index 5fc0e5b886..0000000000 --- a/ext/standard/tests/array/chdir_basic.phpt +++ /dev/null @@ -1,53 +0,0 @@ ---TEST-- -Test chdir() function : basic functionality ---FILE-- - -===DONE=== ---CLEAN-- - ---EXPECTF-- -*** Testing chdir() : basic functionality *** - --- Testing chdir() with absolute path: -- -bool(true) -string(%d) "%slevel_one" - --- Testing chdir() with relative paths: -- -bool(true) -string(%d) "%slevel_one%elevel_two" -===DONE=== diff --git a/ext/standard/tests/array/chdir_error1.phpt b/ext/standard/tests/array/chdir_error1.phpt deleted file mode 100644 index 0f57ff5b2a..0000000000 --- a/ext/standard/tests/array/chdir_error1.phpt +++ /dev/null @@ -1,39 +0,0 @@ ---TEST-- -Test chdir() function : error conditions - Incorrect number of arguments ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing chdir() : error conditions *** - --- Testing chdir() function with Zero arguments -- - -Warning: chdir() expects exactly 1 parameter, 0 given in %s on line %d -bool(false) - --- Testing chdir() function with more than expected no. of arguments -- - -Warning: chdir() expects exactly 1 parameter, 2 given in %s on line %d -bool(false) -===DONE=== diff --git a/ext/standard/tests/array/chdir_error2.phpt b/ext/standard/tests/array/chdir_error2.phpt deleted file mode 100644 index a3bbb63e6d..0000000000 --- a/ext/standard/tests/array/chdir_error2.phpt +++ /dev/null @@ -1,26 +0,0 @@ ---TEST-- -Test chdir() function : error conditions - Non-existent directory ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing chdir() : error conditions *** - -Warning: chdir(): %s (errno %d) in %s on line %d -bool(false) -===DONE=== diff --git a/ext/standard/tests/array/chdir_variation1.phpt b/ext/standard/tests/array/chdir_variation1.phpt deleted file mode 100644 index a7cf857f7f..0000000000 --- a/ext/standard/tests/array/chdir_variation1.phpt +++ /dev/null @@ -1,235 +0,0 @@ ---TEST-- -Test chdir() function : usage variations - different data type as $directory arg ---FILE-- -dir_path = $dir; - } - - public function __toString() { - return "$this->dir_path"; - } -} - -// heredoc string -$heredoc = << -===DONE=== ---CLEAN-- - ---EXPECTF-- -*** Testing chdir() : usage variations *** - --- Iteration 1 -- - -Warning: chdir(): %s (errno %d) in %s on line %d -bool(false) - --- Iteration 2 -- - -Warning: chdir(): %s (errno %d) in %s on line %d -bool(false) - --- Iteration 3 -- - -Warning: chdir(): %s (errno %d) in %s on line %d -bool(false) - --- Iteration 4 -- - -Warning: chdir(): %s (errno %d) in %s on line %d -bool(false) - --- Iteration 5 -- - -Warning: chdir(): %s (errno %d) in %s on line %d -bool(false) - --- Iteration 6 -- - -Warning: chdir(): %s (errno %d) in %s on line %d -bool(false) - --- Iteration 7 -- - -Warning: chdir(): %s (errno %d) in %s on line %d -bool(false) - --- Iteration 8 -- - -Warning: chdir(): %s (errno %d) in %s on line %d -bool(false) - --- Iteration 9 -- - -Warning: chdir(): %s (errno %d) in %s on line %d -bool(false) - --- Iteration 10 -- - -Warning: chdir(): %s (errno %d) in %s on line %d -bool(false) - --- Iteration 11 -- - -Warning: chdir(): %s (errno %d) in %s on line %d -bool(false) - --- Iteration 12 -- - -Warning: chdir(): %s (errno %d) in %s on line %d -bool(false) - --- Iteration 13 -- - -Warning: chdir(): %s (errno %d) in %s on line %d -bool(false) - --- Iteration 14 -- - -Warning: chdir(): %s (errno %d) in %s on line %d -bool(false) - --- Iteration 15 -- - -Warning: chdir(): %s (errno %d) in %s on line %d -bool(false) - --- Iteration 16 -- - -Warning: chdir(): %s (errno %d) in %s on line %d -bool(false) - --- Iteration 17 -- - -Warning: chdir(): %s (errno %d) in %s on line %d -bool(false) - --- Iteration 18 -- - -Warning: chdir() expects parameter 1 to be string, array given in %s on line %d -bool(false) - --- Iteration 19 -- -bool(true) - --- Iteration 20 -- - -Warning: chdir(): %s (errno %d) in %s on line %d -bool(false) - --- Iteration 21 -- -bool(true) - --- Iteration 22 -- -bool(true) - --- Iteration 23 -- - -Warning: chdir(): %s (errno %d) in %s on line %d -bool(false) - --- Iteration 24 -- - -Warning: chdir(): %s (errno %d) in %s on line %d -bool(false) - --- Iteration 25 -- - -Warning: chdir() expects parameter 1 to be string, resource given in %s on line %d -bool(false) -===DONE=== diff --git a/ext/standard/tests/array/chdir_variation2.phpt b/ext/standard/tests/array/chdir_variation2.phpt deleted file mode 100644 index fa70f9e104..0000000000 --- a/ext/standard/tests/array/chdir_variation2.phpt +++ /dev/null @@ -1,104 +0,0 @@ ---TEST-- -Test chdir() function : usage variations - relative paths ---FILE-- - -===DONE=== ---CLEAN-- - ---EXPECTF-- -*** Testing chdir() : usage variations *** - --- $directory = './level_one': -- -bool(true) -bool(true) -string(%d) "%slevel_one" - --- $directory = 'level_one/level_two': -- -bool(true) -bool(true) -string(%d) "%slevel_one%elevel_two" - --- $directory = '..': -- -bool(true) -string(%d) "%slevel_one" - --- $directory = 'level_two', '.': -- -bool(true) -bool(true) -string(%d) "%slevel_one%elevel_two" - --- $directory = '../': -- -bool(true) -string(%d) "%slevel_one" - --- $directory = './': -- -bool(true) -bool(true) -string(%d) "%slevel_one%elevel_two" - --- $directory = '../../'level_one': -- -bool(true) -bool(true) -string(%d) "%slevel_one" -===DONE===