public function update(string $pactJson, string $consumer, string $provider, string $pactDir): bool
    {
        $scripts = $this->installManager->install();

        $arguments   = [];
        $arguments[] = 'update';
        $arguments[] = "--consumer={$consumer}";
        $arguments[] = "--provider={$provider}";
        $arguments[] = "--pact-dir={$pactDir}";
        $arguments[] = "'" . $pactJson . "'";

        $process = new ProcessRunner($scripts->getPactMessage(), $arguments);
        $process->runBlocking();

        \sleep(1);

        return true;
    }
public function update(string $pactJson, string $consumer, string $provider, string $pactDir): bool
    {
        $scripts = $this->installManager->install();

        $arguments   = [];
        $arguments[] = 'update';
        $arguments[] = "--consumer={$consumer}";
        $arguments[] = "--provider={$provider}";
        $arguments[] = "--pact-dir={$pactDir}";
        $arguments[] = "'" . $pactJson . "'";

        $process = new ProcessRunner($scripts->getPactMessage(), $arguments);
        $process->runBlocking();

        \sleep(1);

        return true;
    }
public function update ( string $ pactJson , string $ consumer , string $ provider , string $ pactDir ) : bool { $ scripts = $ this -> installManager -> install ( ) ; $ arguments = [ ] ; $ arguments [ ] = 'update' ; $ arguments [ ] = "--consumer={$consumer}" ; $ arguments [ ] = "--provider={$provider}" ; $ arguments [ ] = "--pact-dir={$pactDir}" ; $ arguments [ ] = "'" . $ pactJson . "'" ; $ process = new ProcessRunner ( $ scripts -> getPactMessage ( ) , $ arguments ) ; $ process -> runBlocking ( ) ; \ sleep ( 1 ) ; return true ; }
Update a pact with the given message, or create the pact if it does not exist. The MESSAGE_JSON may be in the legacy Ruby JSON format or the v2+ format.

@param string $pactJson
@param string $consumer
@param string $provider
@param string $pactDir

@throws \PhpPact\Standalone\Installer\Exception\FileDownloadFailureException
@throws \PhpPact\Standalone\Installer\Exception\NoDownloaderFoundException

@return bool
Update a pact with the given message or create the pact if it does not exist . The MESSAGE_JSON may be in the legacy Ruby JSON format or the v2 + format .