php-8.0.30-src/ext/intl/tests/uconverter_getDestinationEn...

16 lines
322 B
PHP

--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"