public function run(array $arguments, $processTimeout, $processIdleTimeout)
    {
        $scripts = $this->installManager->install();

        $processRunner = new ProcessRunner($scripts->getProviderVerifier(), $arguments);

        $logHandler = new StreamHandler(new ResourceOutputStream(\STDOUT));
        $logHandler->setFormatter(new ConsoleFormatter);
        $logger = new Logger('console');
        $logger->pushHandler($logHandler);

        $logger->addInfo("Verifying PACT with script:\n{$processRunner->getCommand()}\n\n");
        $processRunner->runBlocking();

        $logger->addInfo('out > ' . $processRunner->getOutput());
        $logger->addError('err > ' . $processRunner->getStderr());
    }
public function run(array $arguments, $processTimeout, $processIdleTimeout)
    {
        $scripts = $this->installManager->install();

        $processRunner = new ProcessRunner($scripts->getProviderVerifier(), $arguments);

        $logHandler = new StreamHandler(new ResourceOutputStream(\STDOUT));
        $logHandler->setFormatter(new ConsoleFormatter);
        $logger = new Logger('console');
        $logger->pushHandler($logHandler);

        $logger->addInfo("Verifying PACT with script:\n{$processRunner->getCommand()}\n\n");
        $processRunner->runBlocking();

        $logger->addInfo('out > ' . $processRunner->getOutput());
        $logger->addError('err > ' . $processRunner->getStderr());
    }
public function run ( array $ arguments , $ processTimeout , $ processIdleTimeout ) { $ scripts = $ this -> installManager -> install ( ) ; $ processRunner = new ProcessRunner ( $ scripts -> getProviderVerifier ( ) , $ arguments ) ; $ logHandler = new StreamHandler ( new ResourceOutputStream ( \ STDOUT ) ) ; $ logHandler -> setFormatter ( new ConsoleFormatter ) ; $ logger = new Logger ( 'console' ) ; $ logger -> pushHandler ( $ logHandler ) ; $ logger -> addInfo ( "Verifying PACT with script:\n{$processRunner->getCommand()}\n\n" ) ; $ processRunner -> runBlocking ( ) ; $ logger -> addInfo ( 'out > ' . $ processRunner -> getOutput ( ) ) ; $ logger -> addError ( 'err > ' . $ processRunner -> getStderr ( ) ) ; }
Execute the Pact Verifier Service.

@param array $arguments
@param int   $processTimeout
@param int   $processIdleTimeout

@throws \PhpPact\Standalone\Installer\Exception\FileDownloadFailureException
@throws \PhpPact\Standalone\Installer\Exception\NoDownloaderFoundException
Execute the Pact Verifier Service .