public function testSimpleParameter()
{
$function = new PhpFunction();
$function->addSimpleParameter('param1', 'string');
$this->assertTrue($function->hasParameter('param1'));
$this->assertFalse($function->hasParameter('param2'));
$param1 = $function->getParameter('param1');
$this->assertEquals('string', $param1->getType());
$this->assertFalse($param1->hasValue());
$function->addSimpleParameter('param2', 'string', null);
$this->assertTrue($function->hasParameter('param2'));
$param2 = $function->getParameter('param2');
$this->assertEquals('string', $param2->getType());
$this->assertNull($param2->getValue());
}