--TEST-- Test chunk_split() function : usage variations - different heredoc strings as 'str' argument --FILE-- --EXPECT-- *** Testing chunk_split() : heredoc strings as 'str' argument *** -- Iteration 1 -- string(2) " " -- Iteration 2 -- string(2) " " -- Iteration 3 -- string(3) "a " -- Iteration 4 -- string(45) "This is simp le h ered oc s trin g " -- Iteration 5 -- string(90) "This is to c heck chu nk_s plit fun ctio n wi th m ulti line her edoc " -- Iteration 6 -- string(59) "This che cks here doc with $, %, & , ch ars " -- Iteration 7 -- string(59) "This che cks chu nk_s plit () E scap e ch ars " -- Iteration 8 -- string(117) ""To chec k " in h ered oc" I'm sure it' ll w ork also wit h \ whic h is sin gle slas h " Done