aboutsummaryrefslogtreecommitdiffstats
path: root/Test
diff options
context:
space:
mode:
Diffstat (limited to 'Test')
-rw-r--r--Test/Unit/Ustring.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/Test/Unit/Ustring.php b/Test/Unit/Ustring.php
index a03db3c..36095d4 100644
--- a/Test/Unit/Ustring.php
+++ b/Test/Unit/Ustring.php
@@ -901,6 +901,20 @@ class Ustring extends Test\Unit\Suite
->isEqualTo('11110000100111111001001010101001');
}
+ public function case_transcode_no_iconv()
+ {
+ $this
+ ->given(
+ $this->function->function_exists = function ($name) {
+ return 'iconv' !== $name;
+ }
+ )
+ ->exception(function () {
+ LUT::transcode('foo', 'UTF-8');
+ })
+ ->isInstanceOf('Hoa\Ustring\Exception');
+ }
+
public function case_transcode_and_isUtf8()
{
$this