com php-src: added basic test for UConverter::getSourceEncoding(): ext/intl/tests/uconverter_getSourceEncoding.phpt
| From: | Peter Kokot | Date: | Tue, 19 Feb 2019 02:09:49 +0000 |
| Subject: | com php-src: added basic test for UConverter::getSourceEncoding(): ext/intl/tests/uconverter_getSourceEncoding.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-104708@lists.php.net to get a copy of this message | ||
Commit: 6d9a4f11e6130bcd8b3f20ef56076cdb742d1cb2
Author: Andy McNeice <amcneice@gmail.com> Mon, 9 Oct 2017 21:31:46 +0000
Committer: Peter Kokot <peterkokot@gmail.com> Tue, 19 Feb 2019 03:09:49 +0100
Parents: 40278879fdd537463b069f7af71a5d708146505d
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6d9a4f11e6130bcd8b3f20ef56076cdb742d1cb2
Log:
added basic test for UConverter::getSourceEncoding()
Changed paths:
A ext/intl/tests/uconverter_getSourceEncoding.phpt
Diff:
diff --git a/ext/intl/tests/uconverter_getSourceEncoding.phpt
b/ext/intl/tests/uconverter_getSourceEncoding.phpt
new file mode 100644
index 0000000..c544e8e
--- /dev/null
+++ b/ext/intl/tests/uconverter_getSourceEncoding.phpt
@@ -0,0 +1,14 @@
+--TEST--
+UConverter::getSourceEncoding()
+--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-32', 'ascii');
+var_dump($c->getSourceEncoding());
+--EXPECT--
+string(8) "US-ASCII"