Skip to content

Commit

Permalink
added basic test for UConverter::getDestinationEncoding()
Browse files Browse the repository at this point in the history
  • Loading branch information
AMcNeice authored and petk committed Feb 19, 2019
1 parent 6d9a4f1 commit d194ceb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ext/intl/tests/uconverter_getDestinationEncoding.phpt
@@ -0,0 +1,14 @@
--TEST--
UConverter::getDestinationEncoding()
--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-7', 'ascii');
var_dump($c->getDestinationEncoding());
--EXPECT--
string(5) "UTF-7"

0 comments on commit d194ceb

Please sign in to comment.