/**
  * @param \HelloWordPl\SimpleEntityGeneratorBundle\Lib\MultilineCommentableInterface $element
  * @return string
  */
 protected function prepareMultilineCommentForElement(MultilineCommentableInterface $element)
 {
     if ($element->getMultilineComment()->isEmpty()) {
         return "";
     }
     $multilineCommentPrepared = [];
     $multilineCommentPrepared[] = "\n *";
     foreach ($element->getMultilineComment() as $row) {
         $multilineCommentPrepared[] = sprintf(" * %s", $row);
     }
     return Tools::implodeArrayToTemplate($multilineCommentPrepared);
 }
 public function testImplodeArrayToTemplate()
 {
     $this->assertEquals("foo\nbar", Tools::implodeArrayToTemplate(["foo", "bar"]));
     $this->assertEquals("foo\nbar\n", Tools::implodeArrayToTemplate(["foo", "bar", ""]));
     $this->assertEquals("foo\n\nbar", Tools::implodeArrayToTemplate(["foo", "", "bar"]));
     $this->assertEquals("foo", Tools::implodeArrayToTemplate(["foo"]));
     $this->assertEquals("foo\n", Tools::implodeArrayToTemplate(["foo", ""]));
 }