render() public méthode

Replaces newline characters by HTML line breaks.
public render ( string $value = null ) : string
$value string string to format
Résultat string the altered string.
 /**
  * @test
  */
 public function viewHelperConvertsWindowsLineBreaksToBRTags()
 {
     $this->viewHelper->expects($this->once())->method('renderChildren')->will($this->returnValue('Line 1' . chr(13) . chr(10) . 'Line 2'));
     $actualResult = $this->viewHelper->render();
     $this->assertEquals('Line 1<br />' . chr(13) . chr(10) . 'Line 2', $actualResult);
 }