test to function addcslashes
authormarcosptf <marcosptf@yahoo.com.br>
Fri, 24 Oct 2014 17:11:17 +0000 (15:11 -0200)
committerStanislav Malyshev <stas@php.net>
Mon, 24 Nov 2014 01:19:56 +0000 (17:19 -0800)
test to function bin2hex

ext/standard/tests/strings/addcslashes_005.phpt [moved from tests/func/012.phpt with 87% similarity]
ext/standard/tests/strings/bin2hex_001.phpt [new file with mode: 0644]

similarity index 87%
rename from tests/func/012.phpt
rename to ext/standard/tests/strings/addcslashes_005.phpt
index 3b0d8ea7b32456bea257cecce6dd0cdd27906f0a..f0b2fbcecb2fe2993e63d481e6170766a314fc13 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-addcslashes(); function test
+addcslashes(); function test with warning
 --CREDITS--
  marcosptf - <marcosptf@yahoo.com.br>
 #phptestfest PHPSP on Google - Sao Paulo - Brazil - 2014-06-05
diff --git a/ext/standard/tests/strings/bin2hex_001.phpt b/ext/standard/tests/strings/bin2hex_001.phpt
new file mode 100644 (file)
index 0000000..e73500a
--- /dev/null
@@ -0,0 +1,11 @@
+--TEST--
+bin2hex(); function test
+--CREDITS--
+marcosptf - <marcosptf@yahoo.com.br>
+#phptestfest PHPSP on Google - Sao Paulo - Brazil - 2014-06-05
+--FILE--
+<?php
+echo bin2hex("123456");
+?>
+--EXPECT--
+313233343536