]> granicus.if.org Git - php/commitdiff
- Added some UEXPECTs
authorFelipe Pena <felipe@php.net>
Sat, 22 Mar 2008 14:58:29 +0000 (14:58 +0000)
committerFelipe Pena <felipe@php.net>
Sat, 22 Mar 2008 14:58:29 +0000 (14:58 +0000)
- Fixed some tests

14 files changed:
ext/calendar/tests/jdtojewish.phpt
ext/calendar/tests/jdtomonthname.phpt
ext/dba/tests/bug38698.phpt
ext/dbase/tests/001.phpt
ext/gettext/tests/gettext_basic.phpt
ext/gettext/tests/gettext_basic_de.phpt
ext/iconv/tests/bug37773.phpt
ext/iconv/tests/iconv_stream_filter.phpt
ext/iconv/tests/iconv_substr.phpt
ext/json/tests/bug42785.phpt
ext/mysql/tests/mysql_trace_mode.phpt
ext/pcre/tests/locales.phpt
ext/pdo_mysql/tests/bug_33689.phpt
ext/simplexml/tests/bug36611.phpt

index 484b95749cca96563cc1e6ba0e78efb095005dea..a9551047a37ed706b12bca77af7ff5a56d36e7d1 100644 (file)
@@ -28,3 +28,15 @@ string(184) "2/22/5763
 á' çùåï ä àìôéí úùñ"â
 á' çùåï ä' àìôéí úùñ"â
 "
+--UEXPECT--
+unicode(184) "2/22/5763
+ëá çùåï äúùñâ
+ëá çùåï ä'úùñâ
+ëá çùåï ä àìôéí úùñâ
+ëá çùåï ä' àìôéí úùñâ
+ë"á çùåï äúùñ"â
+á' çùåï äúùñ"â
+á' çùåï ä'úùñ"â
+á' çùåï ä àìôéí úùñ"â
+á' çùåï ä' àìôéí úùñ"â
+"
index 76d127d6be57fce70aa3ece5b2a7047740288724..3924543634f7ea4ca5dea5a3c752bfa63804f9ff 100644 (file)
@@ -69,3 +69,47 @@ string(4) "July"
 string(6) "Tishri"
 string(0) ""
 Done
+--UEXPECTF--   
+unicode(3) "Jan"
+unicode(7) "January"
+unicode(3) "Jan"
+unicode(7) "January"
+unicode(6) "Shevat"
+unicode(0) ""
+unicode(3) "Jan"
+unicode(7) "January"
+unicode(3) "Dec"
+unicode(8) "December"
+unicode(5) "Tevet"
+unicode(0) ""
+unicode(0) ""
+unicode(0) ""
+unicode(0) ""
+unicode(0) ""
+unicode(0) ""
+unicode(0) ""
+
+Warning: jdmonthname() expects parameter 1 to be long, array given in %s on line %d
+bool(false)
+
+Warning: jdmonthname() expects parameter 1 to be long, array given in %s on line %d
+bool(false)
+
+Warning: jdmonthname() expects parameter 1 to be long, array given in %s on line %d
+bool(false)
+
+Warning: jdmonthname() expects parameter 1 to be long, array given in %s on line %d
+bool(false)
+
+Warning: jdmonthname() expects parameter 1 to be long, array given in %s on line %d
+bool(false)
+
+Warning: jdmonthname() expects parameter 1 to be long, array given in %s on line %d
+bool(false)
+unicode(3) "Dec"
+unicode(8) "December"
+unicode(3) "Jul"
+unicode(4) "July"
+unicode(6) "Tishri"
+unicode(0) ""
+Done
index 09f47e3007eabe580a89395a5a57902f7b8bf971..b7c7de3bf7aa2139cbfe1a2c9749063d3e7240f6 100755 (executable)
@@ -23,4 +23,6 @@ if (($db_make=dba_open($db_file, "n", 'cdb_make'))!==FALSE) {
 ===DONE===
 --EXPECTF--
 string(32) "1f34b74bde3744265acfc21e0f30af95"
+--UEXPECTF--
+unicode(32) "1f34b74bde3744265acfc21e0f30af95"
 ===DONE===
index a483f5ff7795e54d41004de8df4bca10fafca51b..60106d5c9f49598275af71dde268a9790ca9c593 100644 (file)
@@ -64,3 +64,22 @@ string(66) "Argument 2 passed to dbase_create() must be an array, string given"
 string(50) "dbase_create(): Expected array as second parameter"
 bool(false)
 Done
+--UEXPECTF--   
+int(%d)
+unicode(38) "dbase_create(): unknown field type 'E'"
+bool(false)
+unicode(38) "dbase_create(): unknown field type '-'"
+bool(false)
+int(%d)
+unicode(71) "dbase_create(): expected field name as first element of list in field 0"
+bool(false)
+unicode(56) "dbase_create(): Unable to create database without fields"
+bool(false)
+unicode(67) "Argument 2 passed to dbase_create() must be an array, integer given"
+unicode(50) "dbase_create(): Expected array as second parameter"
+bool(false)
+unicode(%d) "unlink(%s001.dbf): No such file or directory"
+unicode(66) "Argument 2 passed to dbase_create() must be an array, string given"
+unicode(50) "dbase_create(): Expected array as second parameter"
+bool(false)
+Done
index 7099a185c5a5cc9b762dc53a3c5736a668659b21..5499032fb5b47184a01023ece114325d779f5f44 100644 (file)
@@ -25,3 +25,7 @@ echo _("Basic test"), "\n";
 --EXPECT--
 Perustesti
 Perustesti
+--UEXPECTF--
+Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d
+Perustesti
+Perustesti
index c6d6af6626f4aa516198f32c3ec5bf3c8249426c..89c318b47450a5d92a0561e95d7be98ba350e221 100644 (file)
@@ -30,7 +30,8 @@ string(14) "Einfacher Test"
 string(14) "Einfacher Test"
 string(8) "messages"
 string(8) "messages"
---UEXPECT--
+--UEXPECTF--
+Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d
 string(14) "Einfacher Test"
 string(14) "Einfacher Test"
 unicode(8) "messages"
index d21e6fd0f84c327e8c3c6e9b34af2fa6f1149d20..1a52f66221fd5f825824c2fe09b2dae274a00cb0 100644 (file)
@@ -16,3 +16,5 @@ if ($test === false) {
 ?>
 --EXPECT--
 string(1) "x"
+--UEXPECT--
+unicode(1) "x"
index 70facdcf563efc1ffcb65e8f546c4c9a6e2eaf27..e8a0e909b5befb52c0ccec9f483c90ea9c84dd6b 100644 (file)
@@ -39,3 +39,15 @@ Warning: fread(): iconv stream filter ("ISO-2022-JP"=>"EUC-JP"): invalid multiby
 string(0) ""
 string(0) ""
 string(0) ""
+--UEXPECTF--
+unicode(20) "1b244224332473244b24"
+unicode(10) "41244f1b28"
+unicode(2) "42"
+unicode(20) "a4b3a4f3a4cba4c1a4cf"
+unicode(10) "69636f6e76"
+unicode(2) "0a"
+
+Warning: fread(): iconv stream filter ("ISO-2022-JP"=>"EUC-JP"): invalid multibyte sequence in %s on line %d
+unicode(0) ""
+unicode(0) ""
+unicode(0) ""
index f4e7ff47bf6f6741786eef02a82124e07414b9f5..ba6369388811b0b4f556d2b3d7b900692655938d 100644 (file)
@@ -65,15 +65,15 @@ string(10) "
 a6a4a8a4aaa4ab
 a4aba4ada4afa4b1a4b3a4b5a4b7
 bool(false)
-string(0) ""
+unicode(0) ""
+unicode(14) "This is a test"
 unicode(14) "This is a test"
-string(14) "This is a test"
 unicode(3) "est"
-string(3) "est"
+unicode(3) "est"
+unicode(5) "This "
 unicode(5) "This "
-string(5) "This "
 unicode(0) ""
-string(0) ""
 unicode(0) ""
-string(0) ""
-string(10) "¤Á¤Ï ISO-2"
+unicode(0) ""
+unicode(0) ""
+unicode(10) "¤Á¤Ï ISO-2"
index 7bdadbed1e8472a4add683f51ac4760c384693d3..f05b13ae2e80a801b55879b1442ada93e39273e1 100644 (file)
@@ -24,3 +24,7 @@ var_dump(json_encode($bar1));
 --EXPECT--
 string(13) "[100.1,"bar"]"
 string(21) "{"a":100.1,"b":"foo"}"
+--UEXPECTF--
+Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d
+unicode(13) "[100.1,"bar"]"
+unicode(21) "{"a":100.1,"b":"foo"}"
index 9f0e571d1b0d86226cf1dce631bca9341a6e2aa0..ba494f178dfcb3ebe8f3bdc999d25dc27d9fcb9c 100644 (file)
@@ -26,9 +26,9 @@ mysql_close($link);
 print "done!\n";
 ?>
 --EXPECTF--
-Deprecated: mysql_db_query(): This function is deprecated; use mysql_query() instead%sin %s on line %d
+Deprecated: mysql_db_query(): use mysql_query() instead in %s on line %d
 
-Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in %s on line %d
+Deprecated: mysql_escape_string(): use mysql_real_escape_string() instead. in %s on line %d
 I don\'t mind character sets, do I?\n
 Warning: mysql_query(): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'BOGUS_SQL' at line 1 in %s on line %d
 done!
index 00dc91a0fd3f6a3147a0a89b370368cfac6ba388..f4d650910e1addbdd4474015d350f857fba99613 100644 (file)
@@ -25,3 +25,12 @@ var_dump(preg_match('/^\w{6}$/', 'a
 int(0)
 int(1)
 int(0)
+--UEXPECTF--
+Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d
+int(0)
+
+Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d
+int(1)
+
+Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d
+int(0)
index 5e4b000cbea1db0e70326b4ba0f6175f939eb7c5..1001b7143537ced097bb4ca7d0547b2479e45929 100644 (file)
@@ -51,3 +51,27 @@ Array
     [precision] => 0
     [pdo_type] => 2
 )
+--UEXPECTF--
+object(PDOStatement)#%d (1) {
+  [u"queryString"]=>
+  unicode(18) "SELECT * from test"
+}
+Array
+(
+    [bar] => 1
+    [0] => 1
+)
+Array
+(
+    [native_type] => LONG
+    [flags] => Array
+        (
+            [0] => not_null
+        )
+
+    [table] => test
+    [name] => bar
+    [len] => 11
+    [precision] => 0
+    [pdo_type] => 2
+)
index 264eb1fbb3d15b457b4bf92401af89fbc6d1ee5e..ff57cc54d1ad9d43db882cdadf49e225e94d42f3 100644 (file)
@@ -28,3 +28,9 @@ echo "Done\n";
 int(1)
 int(1)
 Done
+--UEXPECTF--
+int(1)
+
+Strict Standards: Creating default object from empty value in %s on line %d
+int(1)
+Done