ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-cvs
php-cvs
[PHP-CVS] cvs: php-src /ext/standard/tests/array array_chunk2.phpt array_count_values2.phpt array_diff_key2.phpt
by Antony Dovgal other posts by this author
Jun 1 2006 6:04AM messages near this date
[PHP-CVS] cvs: php-src(PHP_5_2) /ext/standard/tests/array 007.phpt array_intersect_1.phpt | [PHP-CVS] 1
tony2001		Thu Jun  1 13:04:10 2006 UTC

  Modified files:              
    /php-src/ext/standard/tests/array	array_chunk2.phpt 
                                     	array_count_values2.phpt 
                                     	array_diff_key2.phpt 
  Log:
  fix tests
  
  
http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/tests/array/array_chunk2.phpt?r1=1.2&r2=
1.3&diff_format=u
Index: php-src/ext/standard/tests/array/array_chunk2.phpt
diff -u php-src/ext/standard/tests/array/array_chunk2.phpt:1.2 php-src/ext/standard/tests/ar
ray/array_chunk2.phpt:1.3
--- php-src/ext/standard/tests/array/array_chunk2.phpt:1.2	Fri May 19 07:44:58 2006
+++ php-src/ext/standard/tests/array/array_chunk2.phpt	Thu Jun  1 13:04:10 2006
@@ -144,3 +144,135 @@
     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"
+  }
+}
http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/tests/array/array_count_values2.phpt?r1=
1.2&r2=1.3&diff_format=u
Index: php-src/ext/standard/tests/array/array_count_values2.phpt
diff -u php-src/ext/standard/tests/array/array_count_values2.phpt:1.2 php-src/ext/standard/t
ests/array/array_count_values2.phpt:1.3
--- php-src/ext/standard/tests/array/array_count_values2.phpt:1.2	Fri May 19 07:44:58 2006
+++ php-src/ext/standard/tests/array/array_count_values2.phpt	Thu Jun  1 13:04:10 2006
@@ -41,3 +41,27 @@
   [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)
+}
http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/tests/array/array_diff_key2.phpt?r1=1.2&
r2=1.3&diff_format=u
Index: php-src/ext/standard/tests/array/array_diff_key2.phpt
diff -u php-src/ext/standard/tests/array/array_diff_key2.phpt:1.2 php-src/ext/standard/tests
/array/array_diff_key2.phpt:1.3
--- php-src/ext/standard/tests/array/array_diff_key2.phpt:1.2	Fri May 19 07:44:58 2006
+++ php-src/ext/standard/tests/array/array_diff_key2.phpt	Thu Jun  1 13:04:10 2006
@@ -42,3 +42,32 @@
     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"
+  }
+}

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved