flush
[m6w6/ext-psi] / tests / idn / idn001.phpt
diff --git a/tests/idn/idn001.phpt b/tests/idn/idn001.phpt
new file mode 100644 (file)
index 0000000..c5d19c6
--- /dev/null
@@ -0,0 +1,22 @@
+--TEST--
+libidn
+--INI--
+psi.directory={PWD}
+--SKIPIF--
+<?php
+extension_loaded("psi") or die("skip - need ext/psi");
+?>
+--FILE--
+===TEST===
+<?php 
+
+$rc = idn\utf8_to_ascii("flöte.de", $result);
+printf("%s\n", $result);
+printf("%s\n", idn\strerror($rc));
+?>
+===DONE===
+--EXPECT--
+===TEST===
+xn--flte-6qa.de
+Success
+===DONE===
\ No newline at end of file