/** * 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); }