public function verify(string $consumerName, string $tag = null, string $consumerVersion = null): self
    {
        $path = "pacts/provider/{$this->config->getProviderName()}/consumer/{$consumerName}/";

        if ($tag) {
            $path .= "latest/{$tag}/";
        } elseif ($consumerVersion) {
            $path .= "version/{$consumerVersion}/";
        } else {
            $path .= 'latest/';
        }

        $uri = $this->config->getBrokerUri()->withPath($path);

        $arguments = \array_merge([$uri->__toString()], $this->getArguments());

        $this->verifyAction($arguments);

        return $this;
    }
public function verify(string $consumerName, string $tag = null, string $consumerVersion = null): self
    {
        $path = "pacts/provider/{$this->config->getProviderName()}/consumer/{$consumerName}/";

        if ($tag) {
            $path .= "latest/{$tag}/";
        } elseif ($consumerVersion) {
            $path .= "version/{$consumerVersion}/";
        } else {
            $path .= 'latest/';
        }

        $uri = $this->config->getBrokerUri()->withPath($path);

        $arguments = \array_merge([$uri->__toString()], $this->getArguments());

        $this->verifyAction($arguments);

        return $this;
    }
public function verify ( string $ consumerName , string $ tag = null , string $ consumerVersion = null ) : self { $ path = "pacts/provider/{$this->config->getProviderName()}/consumer/{$consumerName}/" ; if ( $ tag ) { $ path .= "latest/{$tag}/" ; } elseif ( $ consumerVersion ) { $ path .= "version/{$consumerVersion}/" ; } else { $ path .= 'latest/' ; } $ uri = $ this -> config -> getBrokerUri ( ) -> withPath ( $ path ) ; $ arguments = \ array_merge ( [ $ uri -> __toString ( ) ] , $ this -> getArguments ( ) ) ; $ this -> verifyAction ( $ arguments ) ; return $ this ; }
Make the request to the PACT Verifier Service to run a Pact file tests from the Pact Broker.

@param string      $consumerName    name of the consumer to be compared against
@param null|string $tag             optional tag of the consumer such as a branch name
@param null|string $consumerVersion optional specific version of the consumer; this is overridden by tag

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

@return Verifier
Make the request to the PACT Verifier Service to run a Pact file tests from the Pact Broker .