--TEST-- Test chop() function : usage variations - with heredoc string --FILE-- --EXPECT-- *** Testing chop() : with heredoc strings *** --- Iteration 1 --- unicode(0) "" unicode(0) "" --- Iteration 2 --- unicode(0) "" unicode(0) "" --- Iteration 3 --- unicode(86) "first line of heredoc string second line of heredoc string third line of heredocstring" unicode(86) "first line of heredoc string second line of heredoc string third line of heredocstring" --- Iteration 4 --- unicode(23) "hello world hello world" unicode(23) "hello world hello world" --- Iteration 5 --- unicode(31) "hello123world456 1234hello 1234" unicode(25) "hello123world456 1234hell" --- Iteration 6 --- unicode(24) "helloworldhello hello" unicode(23) "helloworldhello hell" Done