get() публичный статический Метод

public static get ( mixed $class ) : Mockery\MockInterface
$class mixed
Результат Mockery\MockInterface
Пример #1
0
 /**
  * @return \Mockery\MockInterface|WriterInterface
  */
 protected function getWriter()
 {
     return $this->writer = $this->writer ?: Mock::get(WriterInterface::class);
 }
 /**
  * @return \Mockery\MockInterface|GuardCoverageFileWriterInterface
  */
 protected function getGuardCoverageFileWriter()
 {
     return $this->guardCoverageFileWriter = $this->guardCoverageFileWriter ?: Mock::get(GuardCoverageFileWriterInterface::class);
 }
 /**
  * @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);
 }
 /**
  * @return \Mockery\MockInterface|ConfigurationFileWriterInterface
  */
 protected function getConfigurationFileWriter()
 {
     return $this->configurationFileWriter = $this->configurationFileWriter ?: Mock::get(ConfigurationFileWriterInterface::class);
 }
 /**
  * @return \Mockery\MockInterface|PhpMdToolProcessorInterface
  */
 protected function getPhpMdToolProcessor()
 {
     return $this->phpMdToolProcessor = $this->phpMdToolProcessor ?: Mock::get(PhpMdToolProcessorInterface::class);
 }
 /**
  * @return \Mockery\MockInterface|ToolTittleOutputWriter
  */
 protected function getToolTitleOutputWriter()
 {
     return $this->toolTitleOutputWriter = $this->toolTitleOutputWriter ?: Mock::get(ToolTittleOutputWriter::class);
 }
Пример #8
0
 /**
  * @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);
 }
 /**
  * @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);
 }
 /**
  * @return \Mockery\MockInterface|ComposerFilesExtractorQueryHandler
  */
 protected function getComposerFilesExtractorQueryHandler()
 {
     return $this->composerFilesExtractorQueryHandler = $this->composerFilesExtractorQueryHandler ?: Mock::get(ComposerFilesExtractorQueryHandler::class);
 }
 /**
  * @return \Mockery\MockInterface|StrictCoverageProcessorInterface
  */
 protected function getStrictCoverageProcessor()
 {
     return $this->strictCoverageProcessor = $this->strictCoverageProcessor ?: Mock::get(StrictCoverageProcessorInterface::class);
 }
 /**
  * @return \Mockery\MockInterface|ReaderInterface
  */
 protected function getGitIgnoreFileReader()
 {
     return $this->gitIgnoreFileReader = $this->gitIgnoreFileReader ?: Mock::get(ReaderInterface::class);
 }
 /**
  * @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);
 }
 /**
  * @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);
 }