xref: /PHP-5.6/ext/mbstring/tests/bug46806.phpt (revision 4cc35aea)
1--TEST--
2Bug #46806 (mb_wtrimwidth cutting to early)
3--CREDITS--
4Sebastian Schürmann
5sebs@php.net
6Testfest 2009
7--SKIPIF--
8<?php if (!extension_loaded("mbstring")) die("skip mbstring is not available"); ?>
9--FILE--
10<?php
11echo mb_strimwidth('helloworld', 0, 5, '...', 'UTF-8') . "\n";
12echo mb_strimwidth('hello', 0, 5, '...', 'UTF-8');
13?>
14--EXPECT--
15he...
16hello
17