From 2fdd51a1a08b478aa4833505b70028211b6d0b9e Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Tue, 22 Aug 2006 19:51:34 +0000 Subject: [PATCH] add test --- ext/standard/tests/strings/implode1.phpt | 99 ++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 ext/standard/tests/strings/implode1.phpt diff --git a/ext/standard/tests/strings/implode1.phpt b/ext/standard/tests/strings/implode1.phpt new file mode 100644 index 0000000000..1aff3d81c9 --- /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 -- 2.50.1