]> granicus.if.org Git - php/commitdiff
fix tests
authorAntony Dovgal <tony2001@php.net>
Thu, 1 Jun 2006 13:04:10 +0000 (13:04 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 1 Jun 2006 13:04:10 +0000 (13:04 +0000)
ext/standard/tests/array/array_chunk2.phpt
ext/standard/tests/array/array_count_values2.phpt
ext/standard/tests/array/array_diff_key2.phpt

index 2560332bf5d23455ab9f823cc9bbea13889efd4b..43d12544295ac4d9bfab49edb3bb4fe97068b606 100644 (file)
@@ -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"
+  }
+}
index 8dc9b231253a0183ad8761cf79a6b7afb5fa97af..48a8e977c4dc0ca9e38f8f4a4b6fc4e61130b1f4 100644 (file)
@@ -41,3 +41,27 @@ array(8) {
   [0]=>
   int(1)
 }
+--UEXPECTF--
+Warning: array_count_values(): Can only count STRING and INTEGER values! in %s on line %d
+
+Warning: array_count_values(): Can only count STRING and INTEGER values! in %s on line %d
+
+Warning: array_count_values(): Can only count STRING and INTEGER values! in %s on line %d
+array(8) {
+  [1]=>
+  int(2)
+  [u"hello"]=>
+  int(2)
+  [u"world"]=>
+  int(1)
+  [u""]=>
+  int(1)
+  [u"rabbit"]=>
+  int(1)
+  [u"foo"]=>
+  int(1)
+  [u"Foo"]=>
+  int(1)
+  [0]=>
+  int(1)
+}
index b7ef7f31cac4fd8e52de3b50675e94485ef86cfa..66055cbedb6d7058c4a5fc9aebe0667b0423bd40 100644 (file)
@@ -42,3 +42,32 @@ array(4) {
     string(4) "blue"
   }
 }
+--UEXPECTF--
+array(4) {
+  [0]=>
+  array(2) {
+    [u"b"]=>
+    unicode(5) "brown"
+    [u"c"]=>
+    unicode(4) "blue"
+  }
+  [1]=>
+  array(2) {
+    [u"b"]=>
+    unicode(5) "brown"
+    [u"c"]=>
+    unicode(4) "blue"
+  }
+  [2]=>
+  array(1) {
+    [2]=>
+    bool(true)
+  }
+  [3]=>
+  array(2) {
+    [u"b"]=>
+    unicode(5) "brown"
+    [u"c"]=>
+    unicode(4) "blue"
+  }
+}