render() публичный Метод

render the view
С версии: 3.0.0
public render ( integer $articleId = null ) : string
$articleId integer identifier of the article
Результат string
Пример #1
0
 /**
  * testRender
  *
  * @since 3.0.0
  *
  * @param string $articleId
  * @param array $expectArray
  *
  * @dataProvider providerRender
  */
 public function testRender($articleId = null, $expectArray = [])
 {
     /* setup */
     $commentForm = new View\CommentForm($this->_registry, $this->_language);
     /* actual */
     $actual = $commentForm->render($articleId);
     /* compare */
     $this->assertStringStartsWith($expectArray['start'], $actual);
     $this->assertStringEndsWith($expectArray['end'], $actual);
 }