get() public static method

public static get ( mixed $class ) : Mockery\MockInterface
$class mixed
return Mockery\MockInterface
コード例 #1
0
 /**
  * @return \Mockery\MockInterface|WriterInterface
  */
 protected function getWriter()
 {
     return $this->writer = $this->writer ?: Mock::get(WriterInterface::class);
 }
コード例 #2
0
 /**
  * @return \Mockery\MockInterface|GuardCoverageFileWriterInterface
  */
 protected function getGuardCoverageFileWriter()
 {
     return $this->guardCoverageFileWriter = $this->guardCoverageFileWriter ?: Mock::get(GuardCoverageFileWriterInterface::class);
 }
コード例 #3
0
 /**
  * @return \Mockery\MockInterface|PrePushOriginalExecutorInterface
  */
 protected function getPrePushOriginalExecutor()
 {
     return $this->prePushOriginalExecutor = $this->prePushOriginalExecutor ?: Mock::get(PrePushOriginalExecutorInterface::class);
 }
コード例 #4
0
 /**
  * @return \Mockery\MockInterface|InputInterface
  */
 protected function getInput()
 {
     return $this->input = $this->input ?: Mock::get(InputInterface::class);
 }
コード例 #5
0
 /**
  * @return \Mockery\MockInterface|ConfigurationFileWriterInterface
  */
 protected function getConfigurationFileWriter()
 {
     return $this->configurationFileWriter = $this->configurationFileWriter ?: Mock::get(ConfigurationFileWriterInterface::class);
 }
コード例 #6
0
 /**
  * @return \Mockery\MockInterface|PhpMdToolProcessorInterface
  */
 protected function getPhpMdToolProcessor()
 {
     return $this->phpMdToolProcessor = $this->phpMdToolProcessor ?: Mock::get(PhpMdToolProcessorInterface::class);
 }
コード例 #7
0
 /**
  * @return \Mockery\MockInterface|ToolTittleOutputWriter
  */
 protected function getToolTitleOutputWriter()
 {
     return $this->toolTitleOutputWriter = $this->toolTitleOutputWriter ?: Mock::get(ToolTittleOutputWriter::class);
 }
コード例 #8
0
ファイル: QueryBusTrait.php プロジェクト: bruli/php-git-hooks
 /**
  * @return \Mockery\MockInterface|QueryBus
  */
 protected function getQueryBus()
 {
     return $this->queryBus = $this->queryBus ?: Mock::get(QueryBus::class);
 }
コード例 #9
0
 /**
  * @return \Mockery\MockInterface|HookCopier
  */
 protected function getHookCopier()
 {
     return $this->hookCopier = $this->hookCopier ?: Mock::get(HookCopier::class);
 }
コード例 #10
0
 /**
  * @return \Mockery\MockInterface|JsonFilesExtractorQueryHandler
  */
 protected function getJsonFilesExtractorQueryHandler()
 {
     return $this->jsonFilesExtractorQueryHandler = $this->jsonFilesExtractorQueryHandler ?: Mock::get(JsonFilesExtractorQueryHandler::class);
 }
コード例 #11
0
 /**
  * @return \Mockery\MockInterface|JsonLintProcessorInterface
  */
 protected function getJsonLintProcessor()
 {
     return $this->jsonLintProcessor = $this->jsonLintProcessor ?: Mock::get(JsonLintProcessorInterface::class);
 }
コード例 #12
0
 /**
  * @return \Mockery\MockInterface|ComposerFilesExtractorQueryHandler
  */
 protected function getComposerFilesExtractorQueryHandler()
 {
     return $this->composerFilesExtractorQueryHandler = $this->composerFilesExtractorQueryHandler ?: Mock::get(ComposerFilesExtractorQueryHandler::class);
 }
コード例 #13
0
 /**
  * @return \Mockery\MockInterface|StrictCoverageProcessorInterface
  */
 protected function getStrictCoverageProcessor()
 {
     return $this->strictCoverageProcessor = $this->strictCoverageProcessor ?: Mock::get(StrictCoverageProcessorInterface::class);
 }
コード例 #14
0
 /**
  * @return \Mockery\MockInterface|ReaderInterface
  */
 protected function getGitIgnoreFileReader()
 {
     return $this->gitIgnoreFileReader = $this->gitIgnoreFileReader ?: Mock::get(ReaderInterface::class);
 }
コード例 #15
0
 /**
  * @return \Mockery\MockInterface|FilesCommittedExtractor
  */
 protected function getFilesCommittedExtractor()
 {
     return $this->filesCommittedExtractor = $this->filesCommittedExtractor ?: Mock::get(FilesCommittedExtractor::class);
 }
コード例 #16
0
 /**
  * @return \Mockery\MockInterface|IOInterface
  */
 protected function getIOInterface()
 {
     return $this->ioInterface = $this->ioInterface ?: Mock::get(IOInterface::class);
 }
コード例 #17
0
 /**
  * @return \Mockery\MockInterface|CommandBus
  */
 protected function getCommandBus()
 {
     return $this->commandBus = $this->commandBus ?: Mock::get(CommandBus::class);
 }
コード例 #18
0
 /**
  * @return \Mockery\MockInterface|CommitMessageFinderInterface
  */
 protected function getCommitMessageFinder()
 {
     return $this->commitMessageFinder = $this->commitMessageFinder ?: Mock::get(CommitMessageFinderInterface::class);
 }
コード例 #19
0
 /**
  * @return \Mockery\MockInterface|MergeValidatorInterface
  */
 protected function getMergeValidator()
 {
     return $this->mergeValidator = $this->mergeValidator ?: Mock::get(MergeValidatorInterface::class);
 }
コード例 #20
0
 /**
  * @return \Mockery\MockInterface|OutputInterface
  */
 protected function getOutputInterface()
 {
     return $this->outputInterface = $this->outputInterface ?: Mock::get(OutputInterface::class);
 }