PhpGitHooks\Module\Files\Tests\Stub\ComposerFilesResponseStub::createInvalidData PHP Метод

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

public static createInvalidData ( ) : ComposerFilesResponse
Результат PhpGitHooks\Module\Files\Contract\Response\ComposerFilesResponse
    public static function createInvalidData()
    {
        return self::create(true, true, false);
    }

Usage Example

 /**
  * @test
  */
 public function itShouldThrowException()
 {
     $this->expectException(ComposerFilesNotFoundException::class);
     $files = FilesCommittedStub::createInvalidComposerFiles();
     $output = new PreCommitOutputWriter(ComposerTool::CHECKING_MESSAGE);
     $this->shouldWriteOutput($output->getMessage());
     $this->shouldHandleQuery(new ComposerFilesExtractorQuery($files), ComposerFilesResponseStub::createInvalidData());
     $this->shouldWriteLnOutput($output->getFailMessage());
     $this->shouldWriteLnOutput(BadJobLogoResponse::paint($this->errorMessage));
     $this->composerToolCommandHandler->handle(new ComposerToolCommand($files, $this->errorMessage));
 }