--TEST-- Test str_pad() function : usage variations - unexpected inputs for '$pad_type' argument --SKIPIF-- ===DONE=== --EXPECTF-- *** Testing str_pad() function: with unexpected inputs for 'pad_type' argument *** -- Iteration 1 -- string(20) "*********Test string" -- Iteration 2 -- string(20) "Test string*********" -- Iteration 3 -- string(20) "****Test string*****" -- Iteration 4 -- Warning: str_pad(): Padding type has to be STR_PAD_LEFT, STR_PAD_RIGHT, or STR_PAD_BOTH in %s on line %d NULL -- Iteration 5 -- Warning: str_pad(): Padding type has to be STR_PAD_LEFT, STR_PAD_RIGHT, or STR_PAD_BOTH in %s on line %d NULL -- Iteration 6 -- Warning: str_pad(): Padding type has to be STR_PAD_LEFT, STR_PAD_RIGHT, or STR_PAD_BOTH in %s on line %d NULL -- Iteration 7 -- Warning: str_pad(): Padding type has to be STR_PAD_LEFT, STR_PAD_RIGHT, or STR_PAD_BOTH in %s on line %d NULL -- Iteration 8 -- Warning: str_pad(): Padding type has to be STR_PAD_LEFT, STR_PAD_RIGHT, or STR_PAD_BOTH in %s on line %d NULL -- Iteration 9 -- Warning: str_pad(): Padding type has to be STR_PAD_LEFT, STR_PAD_RIGHT, or STR_PAD_BOTH in %s on line %d NULL -- Iteration 10 -- Warning: str_pad() expects parameter 4 to be int, string given in %s on line %d NULL -- Iteration 11 -- Warning: str_pad() expects parameter 4 to be int, string given in %s on line %d NULL -- Iteration 12 -- string(20) "****Test string*****" -- Iteration 13 -- Notice: A non well formed numeric value encountered in %s on line %d string(20) "*********Test string" -- Iteration 14 -- string(20) "****Test string*****" -- Iteration 15 -- Warning: str_pad() expects parameter 4 to be int, array given in %s on line %d NULL -- Iteration 16 -- Warning: str_pad() expects parameter 4 to be int, array given in %s on line %d NULL -- Iteration 17 -- Warning: str_pad() expects parameter 4 to be int, array given in %s on line %d NULL -- Iteration 18 -- string(20) "Test string*********" -- Iteration 19 -- string(20) "*********Test string" -- Iteration 20 -- string(20) "Test string*********" -- Iteration 21 -- string(20) "*********Test string" -- Iteration 22 -- string(20) "*********Test string" -- Iteration 23 -- string(20) "*********Test string" -- Iteration 24 -- Warning: str_pad() expects parameter 4 to be int, object given in %s on line %d NULL -- Iteration 25 -- string(20) "*********Test string" -- Iteration 26 -- string(20) "*********Test string" ===DONE===