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'); }