diff options
-rwxr-xr-x | ext/intl/tests/idn.phpt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/intl/tests/idn.phpt b/ext/intl/tests/idn.phpt new file mode 100755 index 0000000000..fde822a560 --- /dev/null +++ b/ext/intl/tests/idn.phpt @@ -0,0 +1,18 @@ +--TEST-- +IDN +--SKIPIF-- +<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?> +--FILE-- +<?php + +/* + * Test IDN functions (procedural only) + */ + +echo idn_to_ascii("t\xC3\xA4st.de")."\n"; +echo urlencode(idn_to_utf8('xn--tst-qla.de'))."\n"; + +?> +--EXPECT-- +xn--tst-qla.de +t%C3%A4st.de
\ No newline at end of file |