configure() public static method

public static configure ( Composer\IO\IOInterface $io, PhpUnitStrictCoverage $strictCoverage ) : PhpUnitStrictCoverage
$io Composer\IO\IOInterface
$strictCoverage PhpGitHooks\Module\Configuration\Domain\PhpUnitStrictCoverage
return PhpGitHooks\Module\Configuration\Domain\PhpUnitStrictCoverage
Ejemplo n.º 1
0
 /**
  * @param ExecuteInterface $execute
  *
  * @return Execute
  */
 protected function configTools(ExecuteInterface $execute)
 {
     $tools = $execute->execute();
     $tools[0] = PhpUnitConfigurator::configure($this->input, $tools[0]);
     $tools[1] = PhpUnitStrictCoverageConfigurator::configure($this->input, $tools[1]);
     $tools[2] = $this->phpUnitGuardCoverageConfigurator->configure($this->input, $tools[2]);
     return new Execute($tools);
 }
Ejemplo n.º 2
0
 /**
  * @param ExecuteInterface $execute
  *
  * @return ExecuteInterface
  */
 private function configTools(ExecuteInterface $execute)
 {
     $tools = $execute->execute();
     $tools[0] = ComposerConfigurator::configure($this->io, $tools[0]);
     $tools[1] = JsonLintConfigurator::configure($this->io, $tools[1]);
     $tools[2] = PhpLintConfigurator::configure($this->io, $tools[2]);
     $tools[3] = PhpMdConfigurator::configure($this->io, $tools[3]);
     $tools[4] = PhpCsConfigurator::configure($this->io, $tools[4]);
     $tools[5] = PhpCsFixerConfigurator::configure($this->io, $tools[5]);
     $tools[6] = PhpUnitConfigurator::configure($this->io, $tools[6]);
     $tools[7] = PhpUnitStrictCoverageConfigurator::configure($this->io, $tools[7]);
     $tools[8] = $this->phpUnitGuardCoverageConfigurator->configure($this->io, $tools[8]);
     return new Execute($tools);
 }