/**
  * @covers \DCarbone\PHPClassBuilder\Template\Structure\FunctionTemplate::addParameter
  * @covers \DCarbone\PHPClassBuilder\Template\Structure\FunctionTemplate::getParameters
  * @covers \DCarbone\PHPClassBuilder\Template\Structure\FunctionTemplate::hasParameter
  * @covers \DCarbone\PHPClassBuilder\Template\Structure\FunctionTemplate::getParameter
  * @depends testCanConstructWithoutArguments
  */
 public function testCanAddParameterWithValidName()
 {
     $func = new FunctionTemplate();
     $var = new VariableTemplate('test');
     $func->addParameter($var);
     $this->assertCount(1, $func->getParameters());
     $this->assertTrue($func->hasParameter('test'));
     $this->assertSame($var, $func->getParameter('test'));
 }