mirror of
https://github.com/php/php-src.git
synced 2026-03-26 09:12:14 +01:00
added basic test for UConverter::setSourceEncoding()
This commit is contained in:
committed by
Peter Kokot
parent
d194ceb0c2
commit
5bbf0c698f
17
ext/intl/tests/uconverter_setSourceEncoding.phpt
Normal file
17
ext/intl/tests/uconverter_setSourceEncoding.phpt
Normal file
@@ -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