summaryrefslogtreecommitdiff
path: root/ext/intl/tests/uconverter_getSourceEncoding.phpt
blob: c544e8e9b2df0ad1202be1ab9b8e4768480da717 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
UConverter::getSourceEncoding()
--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-32', 'ascii');
var_dump($c->getSourceEncoding());
--EXPECT--
string(8) "US-ASCII"