]> granicus.if.org Git - php/commitdiff
added basic test for UConverter::getDestinationEncoding()
authorAndy McNeice <amcneice@gmail.com>
Tue, 10 Oct 2017 00:15:43 +0000 (00:15 +0000)
committerPeter Kokot <peterkokot@gmail.com>
Tue, 19 Feb 2019 02:15:01 +0000 (03:15 +0100)
ext/intl/tests/uconverter_getDestinationEncoding.phpt [new file with mode: 0644]

diff --git a/ext/intl/tests/uconverter_getDestinationEncoding.phpt b/ext/intl/tests/uconverter_getDestinationEncoding.phpt
new file mode 100644 (file)
index 0000000..0bfe25d
--- /dev/null
@@ -0,0 +1,14 @@
+--TEST--
+UConverter::getDestinationEncoding()
+--CREDITS--
+Andy McNeice - PHP Testfest 2017
+--INI--
+intl.error_level = E_WARNING
+--SKIPIF--
+<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
+--FILE--
+<?php
+$c = new UConverter('UTF-7', 'ascii');
+var_dump($c->getDestinationEncoding());
+--EXPECT--
+string(5) "UTF-7"