diff options
author | Andy McNeice <amcneice@gmail.com> | 2017-10-10 00:15:43 +0000 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2019-02-19 03:15:01 +0100 |
commit | d194ceb0c251ae99af3b9137fcb9bed7eed8ac57 (patch) | |
tree | a674cbe179b3150fe43fe025b491bad6b6eb2a96 /ext/intl | |
parent | 6d9a4f11e6130bcd8b3f20ef56076cdb742d1cb2 (diff) | |
download | php-git-d194ceb0c251ae99af3b9137fcb9bed7eed8ac57.tar.gz |
added basic test for UConverter::getDestinationEncoding()
Diffstat (limited to 'ext/intl')
-rw-r--r-- | ext/intl/tests/uconverter_getDestinationEncoding.phpt | 14 |
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" |