Skip to content

Commit b7b2467

Browse files
Fixing tests with the new error message
1 parent 15eb917 commit b7b2467

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ext/standard/tests/strings/implode_error.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ try {
2222
echo $e->getMessage(), "\n";
2323
}
2424
--EXPECTF--
25-
implode(): Argument #2 ($array) must be of type array, null given
25+
implode(): If argument #1 ($separator) is of type string, argument #2 ($array) must be of type array, null given
2626
implode(): Argument #2 ($array) must be of type array, null given
2727
implode(): Argument #2 ($array) must be of type array, string given

ext/standard/tests/strings/implode_variation.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ string(35) "2000-639010PHP000 0string%0with%0...%0"
198198
string(43) "2\00\0-639\01\0PHP\0\0\0 \0string%0with%0...%0"
199199

200200
*** Testing implode() on empty string ***
201-
implode(): Argument #2 ($array) must be of type array, null given
201+
implode(): If argument #1 ($separator) is of type string, argument #2 ($array) must be of type array, null given
202202

203203
*** Testing implode() on sub-arrays ***
204204

ext/standard/tests/strings/join_error.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ echo "Done\n";
2020
*** Testing join() : error conditions ***
2121

2222
-- Testing join() with less than expected no. of arguments --
23-
join(): Argument #2 ($array) must be of type array, null given
23+
join(): If argument #1 ($separator) is of type string, argument #2 ($array) must be of type array, null given
2424
Done

0 commit comments

Comments
 (0)