Inheritance: implements GrumPHP\IO\IOInterface
Ejemplo n.º 1
0
 /**
  * @return FilesCollection
  */
 protected function getCommittedFiles(ConsoleIO $io)
 {
     if ($stdin = $io->readCommandInput()) {
         return $this->changedFilesLocator->locateFromRawDiffInput($stdin);
     }
     return $this->changedFilesLocator->locateFromGitRepository();
 }
Ejemplo n.º 2
0
 function let(ConsoleIO $consoleIO)
 {
     $consoleIO->isDecorated()->willReturn(true);
     $this->beConstructedWith($consoleIO);
 }