Пример #1
0
 /**
  * Service generator test
  *
  * @param $module
  * @param $name
  * @param $class
  * @param $interface
  * @param $services
  *
  * @dataProvider commandData
  */
 public function testGenerateService($module, $name, $class, $interface, $services)
 {
     $command = new ServiceCommand($this->getHelperSet());
     $command->setHelperSet($this->getHelperSet());
     $command->setGenerator($this->getGenerator());
     $commandTester = new CommandTester($command);
     $code = $commandTester->execute(['--module' => $module, '--name' => $name, '--class' => $class, '--interface' => $interface, '--services' => $services], ['interactive' => false]);
     $this->assertEquals(0, $code);
 }
Пример #2
0
 /**
  * Service generator test
  *
  * @param $module
  * @param $name
  * @param $class
  * @param $interface
  * @param $services
  * @param $path_service
  *
  * @dataProvider commandData
  */
 public function testGenerateService($module, $name, $class, $interface, $services, $path_service)
 {
     $command = new ServiceCommand($this->getHelperSet());
     $command->setHelperSet($this->getHelperSet());
     $command->setGenerator($this->getGenerator());
     $commandTester = new CommandTester($command);
     $this->markTestIncomplete('This test has not been implemented yet.');
     $code = $commandTester->execute(['--module' => $module, '--name' => $name, '--class' => $class, '--interface' => $interface, '--services' => $services, '--path_service' => $path_service], ['interactive' => false]);
     $this->assertEquals(0, $code);
 }