diff options
| -rw-r--r-- | ext/iconv/tests/Quotes.UTF-8 | 4 | ||||
| -rw-r--r-- | ext/iconv/tests/translit-utf8.inc | 7 | ||||
| -rw-r--r-- | ext/iconv/tests/translit-utf8.phpt | 15 |
3 files changed, 26 insertions, 0 deletions
diff --git a/ext/iconv/tests/Quotes.UTF-8 b/ext/iconv/tests/Quotes.UTF-8 new file mode 100644 index 0000000000..3d48ee970a --- /dev/null +++ b/ext/iconv/tests/Quotes.UTF-8 @@ -0,0 +1,4 @@ +“Hello” +‘Hello’ +„Hello” +‚Hello’ diff --git a/ext/iconv/tests/translit-utf8.inc b/ext/iconv/tests/translit-utf8.inc new file mode 100644 index 0000000000..e0e191aa12 --- /dev/null +++ b/ext/iconv/tests/translit-utf8.inc @@ -0,0 +1,7 @@ +<?php // vim600: syn=php +error_reporting(E_ALL); +$utf = implode('', file('ext/iconv/tests/Quotes.UTF-8')); + +print(iconv("UTF-8", "ISO-8859-1//TRANSLIT", $utf)); +print(iconv("UTF-8", "ASCII//TRANSLIT", $utf)); +?> diff --git a/ext/iconv/tests/translit-utf8.phpt b/ext/iconv/tests/translit-utf8.phpt new file mode 100644 index 0000000000..ba865cb632 --- /dev/null +++ b/ext/iconv/tests/translit-utf8.phpt @@ -0,0 +1,15 @@ +--TEST-- +Translit UTF-8 quotes +--SKIPIF-- +<?php include('skipif.inc'); ?> +--FILE-- +<?php include('003.inc'); ?> +--EXPECT-- +"Hello" +`Hello +"Hello" +`Hello +"Hello" +'Hello' +"Hello" +'Hello' |
