/**
  * @covers \DCarbone\PHPClassBuilder\Template\Structure\FunctionTemplate::addBodyPart
  * @covers \DCarbone\PHPClassBuilder\Template\Structure\FunctionTemplate::setBodyParts
  * @covers \DCarbone\PHPClassBuilder\Template\Structure\FunctionTemplate::getBodyParts
  * @depends testFunctionBodyEmptyOnConstruct
  */
 public function testCanOverwriteBody()
 {
     $func = new FunctionTemplate();
     $func->addBodyPart('$hello = \'hello\';');
     $parts = $func->getBodyParts();
     $this->assertCount(1, $parts);
     $func->setBodyParts(array('$world = \'world\';'));
     $parts = $func->getBodyParts();
     $this->assertCount(1, $parts);
     $this->assertContains('$world = \'world\';', $parts);
 }