summaryrefslogtreecommitdiff
path: root/ext/intl
diff options
context:
space:
mode:
authorAndy McNeice <amcneice@gmail.com>2017-10-10 00:15:43 +0000
committerPeter Kokot <peterkokot@gmail.com>2019-02-19 03:15:01 +0100
commitd194ceb0c251ae99af3b9137fcb9bed7eed8ac57 (patch)
treea674cbe179b3150fe43fe025b491bad6b6eb2a96 /ext/intl
parent6d9a4f11e6130bcd8b3f20ef56076cdb742d1cb2 (diff)
downloadphp-git-d194ceb0c251ae99af3b9137fcb9bed7eed8ac57.tar.gz
added basic test for UConverter::getDestinationEncoding()
Diffstat (limited to 'ext/intl')
-rw-r--r--ext/intl/tests/uconverter_getDestinationEncoding.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/intl/tests/uconverter_getDestinationEncoding.phpt b/ext/intl/tests/uconverter_getDestinationEncoding.phpt
new file mode 100644
index 0000000000..0bfe25d2e3
--- /dev/null
+++ b/ext/intl/tests/uconverter_getDestinationEncoding.phpt
@@ -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"