From: Antony Dovgal Date: Sun, 9 Sep 2007 22:47:23 +0000 (+0000) Subject: MFB: split test X-Git-Tag: RELEASE_2_0_0a1~1851 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b9faefee1445040d5588820c0700ede763105f1e;p=php MFB: split test --- diff --git a/ext/standard/tests/strings/addcslashes_001.phpt b/ext/standard/tests/strings/addcslashes_001.phpt new file mode 100644 index 0000000000..28a30aa52e Binary files /dev/null and b/ext/standard/tests/strings/addcslashes_001.phpt differ 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 0000000000..10b1e99738 Binary files /dev/null and b/ext/standard/tests/strings/addcslashes_003.phpt differ 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