Beispiel #1
0
 public function testTruncatePreserveWords()
 {
     $text = 'Lorem ipsum dolor sit amet';
     $this->assertEquals('Lorem ipsum dolor...', \Magelight\Block::forge()->truncatePreserveWords($text, 13, '...'));
 }