コード例 #1
0
ファイル: PhpunitSpec.php プロジェクト: xiris/grumphp
 function it_uses_its_external_command_locator_to_find_correct_command(LocatorInterface $externalCommandLocator)
 {
     $externalCommandLocator->locate('phpunit')->shouldBeCalled();
     $this->getCommandLocation();
 }
コード例 #2
0
ファイル: PreCommitCommand.php プロジェクト: xiris/grumphp
 /**
  * @return FilesCollection
  */
 protected function getCommittedFiles()
 {
     return $this->changedFilesLocator->locate();
 }
コード例 #3
0
ファイル: RunCommand.php プロジェクト: hunslater/grumphp
 /**
  * @return FilesCollection
  */
 protected function getRegisteredFiles()
 {
     return $this->registeredFilesLocator->locate();
 }