com php-src: added basic test for UConverter::getDestinationEncoding(): ext/intl/tests/uconverter_getDestinationEncoding.phpt
| From: | Peter Kokot | Date: | Tue, 19 Feb 2019 02:15:01 +0000 |
| Subject: | com php-src: added basic test for UConverter::getDestinationEncoding(): ext/intl/tests/uconverter_getDestinationEncoding.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-104709@lists.php.net to get a copy of this message | ||
Commit: d194ceb0c251ae99af3b9137fcb9bed7eed8ac57
Author: Andy McNeice <amcneice@gmail.com> Tue, 10 Oct 2017 00:15:43 +0000
Committer: Peter Kokot <peterkokot@gmail.com> Tue, 19 Feb 2019 03:15:01 +0100
Parents: 6d9a4f11e6130bcd8b3f20ef56076cdb742d1cb2
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d194ceb0c251ae99af3b9137fcb9bed7eed8ac57
Log:
added basic test for UConverter::getDestinationEncoding()
Changed paths:
A ext/intl/tests/uconverter_getDestinationEncoding.phpt
Diff:
diff --git a/ext/intl/tests/uconverter_getDestinationEncoding.phpt
b/ext/intl/tests/uconverter_getDestinationEncoding.phpt
new file mode 100644
index 0000000...0bfe25d
--- /dev/null
+++ b/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"