Annotation of embedaddon/php/ext/iconv/tests/translit-utf8.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Translit UTF-8 quotes
                      3: --SKIPIF--
                      4: <?php
                      5: include('skipif.inc');
                      6: ( ICONV_IMPL != "libiconv" ) and die("skip ICONV_IMPL != \"libiconv\""); 
                      7: ?>
                      8: --INI--
                      9: magic_quotes_runtime=0
                     10: error_reporting=2047
                     11: --FILE--
                     12: <?php // vim600: syn=php
                     13: /* include('test.inc'); */
                     14: //error_reporting(E_ALL);
                     15: $utf = implode('', file(dirname(__FILE__).'/Quotes.UTF-8'));
                     16: 
                     17: print(iconv("UTF-8", "ISO-8859-1//TRANSLIT", $utf));
                     18: print(iconv("UTF-8", "ASCII//TRANSLIT", $utf));
                     19: ?>
                     20: --EXPECT--
                     21: "Hello"
                     22: `Hello´
                     23: "Hello"
                     24: `Hello´
                     25: "Hello"
                     26: 'Hello'
                     27: "Hello"
                     28: 'Hello'

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>