]> granicus.if.org Git - php/commitdiff
added test code to iconv.
authorRui Hirokawa <hirokawa@php.net>
Tue, 9 Jan 2001 15:39:25 +0000 (15:39 +0000)
committerRui Hirokawa <hirokawa@php.net>
Tue, 9 Jan 2001 15:39:25 +0000 (15:39 +0000)
ext/iconv/tests/001.phpt [new file with mode: 0644]

diff --git a/ext/iconv/tests/001.phpt b/ext/iconv/tests/001.phpt
new file mode 100644 (file)
index 0000000..a380d27
--- /dev/null
@@ -0,0 +1,18 @@
+--TEST--
+iconv test
+--SKIPIF--
+<?php if (!extension_loaded("iconv")) print "skip"; ?>
+--POST--
+--GET--
+--FILE--
+<?php
+echo "iconv extension is available";
+$test = "Stig S誥her Bakken";
+print "$test\n";
+printf("%s\n", iconv("iso-8859-1", "utf-8", $test));
+
+?>
+--EXPECT--
+iconv extension is available
+Stig S誥her Bakken
+Stig Sテヲther Bakken