render() public method

Render the cropped text
public render ( integer $maxCharacters, string $append = '...', string $value = null ) : string
$maxCharacters integer Place where to truncate the string
$append string What to append, if truncation happened
$value string The input value which should be cropped. If not set, the evaluated contents of the child nodes will be used
return string cropped text
 /**
  * @test
  */
 public function viewHelperHandlesMultiByteValuesCorrectly()
 {
     $this->viewHelper->expects($this->never())->method('renderChildren');
     $actualResult = $this->viewHelper->render(3, '...', 'Äßütest');
     $this->assertEquals('Äßü...', $actualResult);
 }