public function testParameters()
{
$generator = new ModelGenerator();
$method = PhpMethod::create('foo')->addParameter(PhpParameter::create('bar'));
$this->assertEquals("public function foo(\$bar) {\n}\n", $generator->generate($method));
$method = PhpMethod::create('foo')->addParameter(PhpParameter::create('bar'))->addParameter(PhpParameter::create('baz'));
$this->assertEquals("public function foo(\$bar, \$baz) {\n}\n", $generator->generate($method));
}