--TEST-- Test join() function : usage variations - unexpected values for 'pieces' argument(Bug#42789) --FILE-- getMessage(), "\n"; } $counter ++; } // close the resources used fclose($fp); echo "Done\n"; ?> --EXPECT-- *** Testing join() : usage variations *** --- Testing join() by supplying different values for 'pieces' argument --- -- Iteration 1 -- join(): Argument #2 ($array) must be of type ?array, int given -- Iteration 2 -- join(): Argument #2 ($array) must be of type ?array, int given -- Iteration 3 -- join(): Argument #2 ($array) must be of type ?array, int given -- Iteration 4 -- join(): Argument #2 ($array) must be of type ?array, int given -- Iteration 5 -- join(): Argument #2 ($array) must be of type ?array, float given -- Iteration 6 -- join(): Argument #2 ($array) must be of type ?array, float given -- Iteration 7 -- join(): Argument #2 ($array) must be of type ?array, float given -- Iteration 8 -- join(): Argument #2 ($array) must be of type ?array, float given -- Iteration 9 -- join(): Argument #2 ($array) must be of type ?array, float given -- Iteration 10 -- join(): Argument #2 ($array) must be of type ?array, bool given -- Iteration 11 -- join(): Argument #2 ($array) must be of type ?array, bool given -- Iteration 12 -- join(): Argument #2 ($array) must be of type ?array, bool given -- Iteration 13 -- join(): Argument #2 ($array) must be of type ?array, bool given -- Iteration 14 -- join(): Argument #2 ($array) must be of type ?array, string given -- Iteration 15 -- join(): Argument #2 ($array) must be of type ?array, string given -- Iteration 16 -- join(): Argument #2 ($array) must be of type ?array, test given -- Iteration 17 -- join(): Argument #2 ($array) must be of type ?array, string given -- Iteration 18 -- join(): Argument #2 ($array) must be of type ?array, string given -- Iteration 19 -- join(): Argument #1 ($array) must be of type array, string given -- Iteration 20 -- join(): Argument #1 ($array) must be of type array, string given -- Iteration 21 -- join(): Argument #2 ($array) must be of type ?array, resource given -- Iteration 22 -- join(): Argument #1 ($array) must be of type array, string given -- Iteration 23 -- join(): Argument #1 ($array) must be of type array, string given Done