public function testTruncate()
{
$value = 'very loooooong text lala';
$format = ['length' => 10, 'etc' => ' usw.', 'break_words' => true];
$this->assertEquals('very usw.', rex_formatter::truncate($value, $format));
// XXX hmm seems not to be correct
$format = ['length' => 10, 'etc' => ' usw.', 'break_words' => false];
$this->assertEquals('very usw.', rex_formatter::truncate($value, $format));
}