From 07dcab60f0b43b69f18573ee1076029f5d841c7a Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Fri, 3 Jan 2003 20:02:23 +0000 Subject: [PATCH] Added test cases for iconv_strpos() and iconv_strrpos() --- ext/iconv/tests/iconv_strpos.phpt | 52 +++++++++++++++++++++++++++ ext/iconv/tests/iconv_strrpos.phpt | 56 ++++++++++++++++++++++++++++++ 2 files changed, 108 insertions(+) create mode 100644 ext/iconv/tests/iconv_strpos.phpt create mode 100644 ext/iconv/tests/iconv_strrpos.phpt diff --git a/ext/iconv/tests/iconv_strpos.phpt b/ext/iconv/tests/iconv_strpos.phpt new file mode 100644 index 0000000000..ccf4ea74a7 --- /dev/null +++ b/ext/iconv/tests/iconv_strpos.phpt @@ -0,0 +1,52 @@ +--TEST-- +iconv_strpos() +--SKIPIF-- + +--INI-- +iconv.internal_charset=ISO-8859-1 +--FILE-- + +--EXPECTF-- +2: %s +bool(false) +2: %s +bool(false) +2: %s +bool(false) +bool(false) +int(7) +int(7) +int(16) +int(16) +int(300) +int(300) +int(302) +int(151) +int(1) +int(300) diff --git a/ext/iconv/tests/iconv_strrpos.phpt b/ext/iconv/tests/iconv_strrpos.phpt new file mode 100644 index 0000000000..f150f88422 --- /dev/null +++ b/ext/iconv/tests/iconv_strrpos.phpt @@ -0,0 +1,56 @@ +--TEST-- +iconv_strrpos() +--SKIPIF-- + +--INI-- +iconv.internal_charset=ISO-8859-1 +--FILE-- + +--EXPECT-- +int(14) +int(9) +int(605) +int(300) +int(305) +int(151) +int(600) +bool(false) +int(601) +int(300) +int(602) +int(301) +int(603) +int(302) +int(604) +int(303) +int(605) +int(304) +int(606) +int(305) -- 2.50.1