--TEST-- ucfirst() function --INI-- precision=14 --FILE-- --EXPECTF-- #### Basic and Various operations #### Notice: Use of undefined constant string - assumed 'string' in %s on line %d string(16) "Testing ucfirst." string(17) "1.testing ucfirst" string(11) "HELLO wORLD" string(11) "HELLO wORLD" string(1) "" string(1) "" string(2) "0" string(4) "Abcd" string(3) "Xyz" string(6) "String" string(2) "-3" string(2) "-3" string(6) "-3.344" string(6) "-3.344" string(0) "" string(4) "NULL" string(1) "0" string(1) "0" string(1) "1" string(4) "TRUE" string(1) "1" string(1) "1" string(8) "1.234444" string(0) "" string(5) "FALSE" string(1) " " string(5) " " string(1) "B" string(2) "\t" string(1) " " string(2) "12" string(8) "12twelve" #### Testing Miscelleneous inputs #### --- Testing arrays --- Warning: ucfirst() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d NULL --- Testing objects --- string(12) "Hello, world" --- Testing Resources --- string(6) "Stream" string(1) "0" --- Testing a longer and heredoc string --- string(639) "Abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789 abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789 abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789 abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789 abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789 abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789 abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789 @#$%^&**&^%$#@!~:())))((((&&&**%$###@@@!!!~~~~@###$%^&* abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789" --- Testing a heredoc null string --- string(0) "" --- Testing simple and complex syntax strings --- string(5) "World" string(7) "World'S" Notice: Undefined variable: strS in %s on line %d string(0) "" string(6) "WorldS" string(6) "WorldS" --- Nested ucfirst() --- string(5) "Hello" #### error conditions #### Warning: ucfirst() expects exactly 1 parameter, 0 given in %s on line %d Warning: ucfirst() expects exactly 1 parameter, 2 given in %s on line %d Warning: ucfirst() expects exactly 1 parameter, 2 given in %s on line %d Done --UEXPECTF-- #### Basic and Various operations #### Notice: Use of undefined constant string - assumed 'string' in %s on line %d unicode(16) "Testing ucfirst." unicode(17) "1.testing ucfirst" unicode(11) "HELLO wORLD" unicode(11) "HELLO wORLD" unicode(1) "" unicode(1) "" unicode(2) "0" unicode(4) "Abcd" unicode(3) "Xyz" unicode(6) "String" unicode(2) "-3" unicode(2) "-3" unicode(6) "-3.344" unicode(6) "-3.344" unicode(0) "" unicode(4) "NULL" unicode(1) "0" unicode(1) "0" unicode(1) "1" unicode(4) "TRUE" unicode(1) "1" unicode(1) "1" unicode(8) "1.234444" unicode(0) "" unicode(5) "FALSE" unicode(1) " " unicode(5) " " unicode(1) "B" unicode(2) "\t" unicode(1) " " unicode(2) "12" unicode(8) "12twelve" #### Testing Miscelleneous inputs #### --- Testing arrays --- Warning: ucfirst() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d NULL --- Testing objects --- unicode(12) "Hello, world" --- Testing Resources --- unicode(6) "Stream" unicode(1) "0" --- Testing a longer and heredoc string --- unicode(639) "Abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789 abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789 abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789 abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789 abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789 abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789 abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789 @#$%^&**&^%$#@!~:())))((((&&&**%$###@@@!!!~~~~@###$%^&* abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789" --- Testing a heredoc null string --- unicode(0) "" --- Testing simple and complex syntax strings --- unicode(5) "World" unicode(7) "World'S" Notice: Undefined variable: strS in %s on line %d unicode(0) "" unicode(6) "WorldS" unicode(6) "WorldS" --- Nested ucfirst() --- unicode(5) "Hello" #### error conditions #### Warning: ucfirst() expects exactly 1 parameter, 0 given in %s on line %d Warning: ucfirst() expects exactly 1 parameter, 2 given in %s on line %d Warning: ucfirst() expects exactly 1 parameter, 2 given in %s on line %d Done