From b9faefee1445040d5588820c0700ede763105f1e Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Sun, 9 Sep 2007 22:47:23 +0000 Subject: [PATCH] MFB: split test --- .../tests/strings/addcslashes_001.phpt | Bin 0 -> 1620 bytes .../tests/strings/addcslashes_002.phpt | 33 ++++++++++++ .../tests/strings/addcslashes_003.phpt | Bin 0 -> 1618 bytes .../tests/strings/addcslashes_004.phpt | 47 ++++++++++++++++++ 4 files changed, 80 insertions(+) create mode 100644 ext/standard/tests/strings/addcslashes_001.phpt create mode 100644 ext/standard/tests/strings/addcslashes_002.phpt create mode 100644 ext/standard/tests/strings/addcslashes_003.phpt create mode 100644 ext/standard/tests/strings/addcslashes_004.phpt diff --git a/ext/standard/tests/strings/addcslashes_001.phpt b/ext/standard/tests/strings/addcslashes_001.phpt new file mode 100644 index 0000000000000000000000000000000000000000..28a30aa52e035e307614b2768598d14595f97c5d GIT binary patch literal 1620 zcmb7^Z)@8y5XSp<+CIc#TCmfY#`(K0>&nF%CK4#U~#`z#E}Oqd+le9q01nM4>rfW=z!JXI3>4bv$r9;1MS;dna6 zj7$rj8vOq*>f++VcrwD(kM~)U5h8e^z-u%bV8N+;e9l%HVrEhfDigY38^G;UdP8#4 z0GEZEWr%IJnJ zXiO#5G{<8udBXHE#lG)=Y0b9a0|BsUO^j{(Q>^>FX1_TI?7PRjBG6V9WfgT5^D6H4 zZL0UUiVKefMTbkJGRUy-+(6a9?=(+vD*UO^0AjIFTHr94W;_?#U1|Lc(S-eiEj2Qd$%@s1g7moab|bZ4;BkdB3rsmfC>KEUU~Xt~;H&XwGt zu=bjvoL2_$VVOz+SMy!<-F9^{-C7eL%zcqlYi?S&o3i>Ix^54*`yQxsNy;AnkLlH8 z913l<+{;#9P2a^FP4u;aQu#ub!PyW(^>c0CpARAU**G@Htpn*sr-xgJROhs)<&Zij k2SYctevOVye-PVI$?u<8^2a2`&lh+kG;<1AG5{hr~m)} literal 0 HcmV?d00001 diff --git a/ext/standard/tests/strings/addcslashes_002.phpt b/ext/standard/tests/strings/addcslashes_002.phpt new file mode 100644 index 0000000000..33baa846d8 --- /dev/null +++ b/ext/standard/tests/strings/addcslashes_002.phpt @@ -0,0 +1,33 @@ +--TEST-- +Test addcslashes() function (variation 2) +--INI-- +precision=14 +--FILE-- + +--EXPECTF-- +*** Testing addcslashes() with ASCII code between 0 and 31 *** +string(44) "goodyear12345NULL\000truefalse\a\v\f\b\n\r\t" + +*** Testing addcslashes() with objects *** +string(7) "O\bject" +Done diff --git a/ext/standard/tests/strings/addcslashes_003.phpt b/ext/standard/tests/strings/addcslashes_003.phpt new file mode 100644 index 0000000000000000000000000000000000000000..10b1e99738b27c6c701f635f52c59781aae91be4 GIT binary patch literal 1618 zcmb_cZEM>w5Z-6~ikqM~39)M@X*c%Pl`e%qR|d=2pcjVZD2W?e_WY72{`EVlY15YC zu5=h=>F&8V-E(r?@$mcDb=g=IC5Y)XEMieCRMBd~tkPi_r5ai*kw?OA`)%gBqw^72 zWVs5Xg7hDQ0SQk>XG4;HILa0oWBVQW8Wo|6W1&@A6%gsHDxtH_RJcfiqwaJ%V1h<^ z{vhsER4yQS#9HL@Dp9&DfQ(V|_ly$zJ*|?gbxBvf4pdi}0hprMp&(D{$EvnG(yTUSjW zzYBh2D9O?1@D%Dg)>9d|f!FH~4&J=&LUVnRgKa-FUX|oUnG>OL?fZts=5JE4rj)g< zdpiMNQmqV!fw7}cG(W>%--ajSQyQU{P6oS9qUE=N^G6RsK&rdUzCi^8QV=UqqQKm& z^{oeMgfmR(y8xW*6ebW_cA}x@jkAH38ycb_yE!f}!b@CYj0tM;vZEyK!WZDlnyoWxN3aGSVX7Sc#r@L054M^Jt|s zy+yEB06lDRq!sK@OV30g?a! literal 0 HcmV?d00001 diff --git a/ext/standard/tests/strings/addcslashes_004.phpt b/ext/standard/tests/strings/addcslashes_004.phpt new file mode 100644 index 0000000000..ba553a2688 --- /dev/null +++ b/ext/standard/tests/strings/addcslashes_004.phpt @@ -0,0 +1,47 @@ +--TEST-- +Test addcslashes() function (errors) +--INI-- +precision=14 +--FILE-- + +--EXPECTF-- +*** Testing error conditions *** + +Warning: addcslashes() expects exactly 2 parameters, 0 given in %s on line %d +NULL + +Warning: addcslashes() expects exactly 2 parameters, 1 given in %s on line %d +NULL +string(6) "\f\o\o" + +Warning: addcslashes() expects exactly 2 parameters, 3 given in %s on line %d +NULL +Done +--UEXPECTF-- +*** Testing error conditions *** + +Warning: addcslashes() expects exactly 2 parameters, 0 given in %s on line %d +NULL + +Warning: addcslashes() expects exactly 2 parameters, 1 given in %s on line %d +NULL + +Warning: addcslashes() expects parameter 1 to be strictly a binary string, Unicode string given in %s on line %d +NULL + +Warning: addcslashes() expects exactly 2 parameters, 3 given in %s on line %d +NULL +Done -- 2.50.1