getEndpoint() public method

Get the endpoint this certificate is valid for
public getEndpoint ( $endpointType ) : string
return string
コード例 #1
0
 public function testInvalidGetEndpointSandbox()
 {
     $certificate = new Certificate(__DIR__ . '/.././resources/../resources/certificate_corrupt.pem', null, false, Certificate::ENDPOINT_ENV_SANDBOX);
     $this->setExpectedException('InvalidArgumentException', 'is not a valid endpoint type.');
     $certificate->getEndpoint('invalid');
 }