Tests Unicode::truncate().
@dataProvider providerTruncate
public function testTruncate($text, $max_length, $expected, $wordsafe = FALSE, $add_ellipsis = FALSE) {
Unicode::check();
$this
->assertEquals($expected, Unicode::truncate($text, $max_length, $wordsafe, $add_ellipsis));
}