1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/ext/intl/tests/uconverter_setSourceEncoding.phpt
Gina Peter Banyard c42e6d62d8 ext/intl: modernize tests (#19392)
This is effectively removing ZPP tests, enabling warnings, and moving INI settings into the INI PHPT block
2025-08-06 23:33:48 +01:00

17 lines
316 B
PHP

--TEST--
UConverter::setSourceEncoding()
--CREDITS--
Andy McNeice - PHP Testfest 2017
--EXTENSIONS--
intl
--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"