1--TEST-- 2UConverter::setSourceEncoding() 3--CREDITS-- 4Andy McNeice - PHP Testfest 2017 5--INI-- 6intl.error_level = E_WARNING 7--SKIPIF-- 8<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?> 9--FILE-- 10<?php 11$c = new UConverter('latin1', 'ascii'); 12var_dump($c->getSourceEncoding()); 13$c->setSourceEncoding('utf-7'); 14var_dump($c->getSourceEncoding()); 15--EXPECT-- 16string(8) "US-ASCII" 17string(5) "UTF-7" 18