PhpGitHooks\Module\Git\Contract\Response\GoodJobLogoResponse::paint PHP Method

paint() public static method

public static paint ( string $message ) : string
$message string
return string
    public static function paint($message)
    {
        return sprintf("<fg=yellow;options=bold;>\n                 @@@@@@@@@@@@@@@\n     @@@@      @@@@@@@@@@@@@@@@@@@\n    @    @   @@@@@@@@@@@@@@@@@@@@@@@\n    @    @  @@@@@@@@   @@@   @@@@@@@@@\n    @   @  @@@@@@@@@   @@@   @@@@@@@@@@\n    @  @   @@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n   @@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@\n  @         @ @@  @@@@@@@@@@@@@  @@@@@@@@\n @@         @ @@@  @@@@@@@@@@@  @@@@@@@@@\n@@   @@@@@@@@ @@@@  @@@@@@@@@  @@@@@@@@@@\n@            @ @@@@           @@@@@@@@@@\n@@           @ @@@@@@@@@@@@@@@@@@@@@@@@\n @   @@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@\n @@         @ @@@@@@@@@@@@@@@@@@@@@@\n  @@@@@@@@@@   @@@@@@@@@@@@@@@@@@@\n                 @@@@@@@@@@@@@@@\n        </fg=yellow;options=bold;>\n\n        <fg=white;bg=yellow;options=bold;>       %s       </fg=white;bg=yellow;options=bold;>", $message);
    }

Usage Example

コード例 #1
0
 /**
  * @test
  */
 public function itShouldWorksFine()
 {
     $configurationDataResponse = ConfigurationDataResponseStub::createCustom(false, false, true);
     $this->shouldHandleQuery(new ConfigurationDataFinderQuery(), $configurationDataResponse);
     $this->shouldWriteLnOutput(PrePushTool::PRE_PUSH_HOOK);
     $this->shouldExecutePrePushOriginal($this->remote, $this->url, '');
     $this->shouldHandleCommand(new PhpUnitToolCommand($configurationDataResponse->getPrePush()->getPhpUnit()->isPhpunitRandomMode(), $configurationDataResponse->getPrePush()->getPhpUnit()->getPhpunitOptions(), $configurationDataResponse->getPrePush()->getErrorMessage()));
     $this->shouldHandleCommand(new StrictCoverageCommand($configurationDataResponse->getPrePush()->getPhpUnitStrictCoverage()->getMinimum(), $configurationDataResponse->getPrePush()->getErrorMessage()));
     $this->shouldHandleCommand(new GuardCoverageCommand($configurationDataResponse->getPreCommit()->getPhpUnitGuardCoverage()->getWarningMessage()));
     $this->shouldWriteLnOutput(GoodJobLogoResponse::paint($configurationDataResponse->getPrePush()->getRightMessage()));
     $this->prePushToolCommandHandler->handle(new PrePushToolCommand($this->remote, $this->url));
 }
All Usage Examples Of PhpGitHooks\Module\Git\Contract\Response\GoodJobLogoResponse::paint
GoodJobLogoResponse