mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-08 01:37:30 +00:00
added basic test for UConverter::setSourceEncoding()
This commit is contained in:
1 parent
d194ceb0c2
commit
5bbf0c698f
1 file changed
+17
@@ -0,0 +1,17 @@
|
||||
--TEST--
|
||||
UConverter::setSourceEncoding()
|
||||
--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('latin1', 'ascii');
|
||||
var_dump($c->getSourceEncoding());
|
||||
$c->setSourceEncoding('utf-7');
|
||||
var_dump($c->getSourceEncoding());
|
||||
--EXPECT--
|
||||
string(8) "US-ASCII"
|
||||
string(5) "UTF-7"
|
||||
Reference in new issue
Block a user