diff options
Diffstat (limited to 'ext/standard/tests/array/array_chunk2.phpt')
-rw-r--r-- | ext/standard/tests/array/array_chunk2.phpt | 132 |
1 files changed, 132 insertions, 0 deletions
diff --git a/ext/standard/tests/array/array_chunk2.phpt b/ext/standard/tests/array/array_chunk2.phpt index 2560332bf5..43d1254429 100644 --- a/ext/standard/tests/array/array_chunk2.phpt +++ b/ext/standard/tests/array/array_chunk2.phpt @@ -144,3 +144,135 @@ array(1) { string(1) "e" } } +--UEXPECTF-- +Warning: array_chunk(): Size parameter expected to be greater than 0 in %s on line %d +NULL + +Warning: array_chunk(): Size parameter expected to be greater than 0 in %s on line %d +NULL +array(5) { + [0]=> + array(1) { + [0]=> + unicode(1) "a" + } + [1]=> + array(1) { + [0]=> + unicode(1) "b" + } + [2]=> + array(1) { + [0]=> + unicode(1) "c" + } + [3]=> + array(1) { + [0]=> + unicode(1) "d" + } + [4]=> + array(1) { + [0]=> + unicode(1) "e" + } +} +array(5) { + [0]=> + array(1) { + [0]=> + unicode(1) "a" + } + [1]=> + array(1) { + [1]=> + unicode(1) "b" + } + [2]=> + array(1) { + [2]=> + unicode(1) "c" + } + [3]=> + array(1) { + [3]=> + unicode(1) "d" + } + [4]=> + array(1) { + [4]=> + unicode(1) "e" + } +} +array(3) { + [0]=> + array(2) { + [0]=> + unicode(1) "a" + [1]=> + unicode(1) "b" + } + [1]=> + array(2) { + [0]=> + unicode(1) "c" + [1]=> + unicode(1) "d" + } + [2]=> + array(1) { + [0]=> + unicode(1) "e" + } +} +array(3) { + [0]=> + array(2) { + [0]=> + unicode(1) "a" + [1]=> + unicode(1) "b" + } + [1]=> + array(2) { + [2]=> + unicode(1) "c" + [3]=> + unicode(1) "d" + } + [2]=> + array(1) { + [4]=> + unicode(1) "e" + } +} +array(1) { + [0]=> + array(5) { + [0]=> + unicode(1) "a" + [1]=> + unicode(1) "b" + [2]=> + unicode(1) "c" + [3]=> + unicode(1) "d" + [4]=> + unicode(1) "e" + } +} +array(1) { + [0]=> + array(5) { + [0]=> + unicode(1) "a" + [1]=> + unicode(1) "b" + [2]=> + unicode(1) "c" + [3]=> + unicode(1) "d" + [4]=> + unicode(1) "e" + } +} |