--TEST-- mb_trim() function tests --EXTENSIONS-- mbstring --FILE-- getMessage()); } ?> --EXPECT-- == Copy from trim == bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) == Empty string == string(0) "" string(0) "" string(0) "" == Single string == string(6) " test " string(21) "あいうえおあお" string(11) "foo BAR Spa" string(12) "oo BAR Spaß" == Multi strings == string(10) "oo BAR Spa" string(10) "oo BAR Spa" string(16) "いうおえお " string(16) "いうおえお " string(25) " あいうおえお  " string(26) " あいうおえお  a" == Many strings == string(0) "" string(1) "a" string(388) "                                                                                                                                 a" == Very long trim characters == string(5) "hello" int(2053) int(2053) == mb_ltrim == string(15) "いああああ" == mb_rtrim == string(102) "あああああああああああああああああああああああああああああああああい" == default params == string(0) "" == Byte Order Mark == string(6) "漢字" string(8) "226f575b" string(8) "6f225b57" == Empty string == string(6) " abcd " string(6) " abcd " string(6) " abcd " == SJIS == string(3) "あ" == Same strings == string(1) "f" == $encoding throws ValueError == string(73) "mb_trim(): Argument #3 ($encoding) must be a valid encoding, "NULL" given"