Ejemplo n.º 1
0
 /**
  * (non-PHPdoc)
  *
  * @see \SK\ITCBundle\Code\Generator\PHPUnit\AbstractGenerator::execute($input, $output)
  */
 public function execute(InputInterface $input, OutputInterface $output)
 {
     parent::execute($input, $output);
     $this->writeTable(120);
 }
Ejemplo n.º 2
0
 /**
  * (non-PHPdoc)
  *
  * @see \SK\ITCBundle\Code\Generator\PHPUnit\AbstractGenerator::execute($input, $output)
  */
 public function execute(InputInterface $input, OutputInterface $output)
 {
     parent::execute($input, $output);
     $src = $this->getInput()->getArgument("src");
     $this->writeInfo(sprintf("Searching files in '%s' sources.", implode("', '", $src)));
     $canContinue = false;
     foreach ($src as $source) {
         if (file_exists($source) || is_dir($source)) {
             $canContinue = true;
         }
     }
     if (!$canContinue) {
         $this->writeInfo(sprintf("Sources '%s' doesn't exists.", implode("', '", $src)));
         return;
     }
     if ($this->getInput()->hasOption("bootstrap")) {
         $bootstrap = $this->getInput()->getOption("bootstrap");
         try {
             if (file_exists($bootstrap)) {
                 @(require_once $bootstrap);
                 $this->writeInfo(sprintf("Finder Adding Boostrap'%s'", $bootstrap), OutputInterface::VERBOSITY_VERY_VERBOSE);
             }
         } catch (\Exception $e) {
             $this->writeException($e);
         }
     }
     $this->writeTable(120);
 }