/**
  * Tests build().
  *
  * @param string $expectedSignature The expected signature parameters.
  * @param string $expectedBody      The expected body parameters.
  * @param string $function          The function name.
  *
  * @dataProvider provideTestBuild
  * @test
  */
 public function testBuild($expectedSignature, $expectedBody, $function)
 {
     $builder = new ParameterBuilder();
     $builder->build($function);
     $this->assertEquals($expectedBody, $builder->getBodyParameters());
     $this->assertEquals($expectedSignature, $builder->getSignatureParameters());
 }
 /**
  * Defines the mock function.
  *
  * @SuppressWarnings(PHPMD)
  */
 public function defineFunction()
 {
     $name = $this->mock->getName();
     $parameterBuilder = new ParameterBuilder();
     $parameterBuilder->build($name);
     $data = ["namespace" => $this->mock->getNamespace(), "name" => $name, "fqfn" => $this->mock->getFQFN(), "signatureParameters" => $parameterBuilder->getSignatureParameters(), "bodyParameters" => $parameterBuilder->getBodyParameters()];
     $this->template->setVar($data, false);
     $definition = $this->template->render();
     eval($definition);
 }