public function testSafeTruncate() { $this->assertEquals('This ', Utils::safeTruncate('This is a string to truncate', 1)); $this->assertEquals('This ', Utils::safeTruncate('This is a string to truncate', 4)); $this->assertEquals('This is ', Utils::safeTruncate('This is a string to truncate', 5)); }