Beispiel #1
0
 /**
  * Add a class method
  *
  * @param  MethodGenerator $method
  * @return InterfaceGenerator
  */
 public function addMethod(MethodGenerator $method)
 {
     $this->methods[$method->getName()] = $method;
     return $this;
 }
 /**
  * @dataProvider methodProvider
  */
 public function testBuild(Command $command, $expectedCmdName)
 {
     $this->assertSame($expectedCmdName, $this->testInstance->generate($command));
 }