diff --git a/ext/standard/tests/strings/implode1.phpt b/ext/standard/tests/strings/implode1.phpt new file mode 100644 index 00000000000..1aff3d81c99 --- /dev/null +++ b/ext/standard/tests/strings/implode1.phpt @@ -0,0 +1,99 @@ +--TEST-- +implode() and various args +--FILE-- + +--EXPECTF-- +string(4) "1, 2" +array(2) { + [0]=> + int(1) + [1]=> + int(2) +} +string(8) "1.1, 2.2" +array(2) { + [0]=> + float(1.1) + [1]=> + float(2.2) +} + +Notice: Array to string conversion in %s on line %d + +Notice: Array to string conversion in %s on line %d +string(12) "Array, Array" +array(2) { + [0]=> + array(1) { + [0]=> + int(2) + } + [1]=> + array(1) { + [0]=> + int(1) + } +} +string(3) ", 1" +array(2) { + [0]=> + bool(false) + [1]=> + bool(true) +} +Done +--UEXPECTF-- +unicode(4) "1, 2" +array(2) { + [0]=> + int(1) + [1]=> + int(2) +} +unicode(8) "1.1, 2.2" +array(2) { + [0]=> + float(1.1) + [1]=> + float(2.2) +} + +Notice: Array to string conversion in %s on line %d + +Notice: Array to string conversion in %s on line %d +unicode(12) "Array, Array" +array(2) { + [0]=> + array(1) { + [0]=> + int(2) + } + [1]=> + array(1) { + [0]=> + int(1) + } +} +unicode(3) ", 1" +array(2) { + [0]=> + bool(false) + [1]=> + bool(true) +} +Done