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