Skip to content

Commit

Permalink
#172 make CA file check testable
Browse files Browse the repository at this point in the history
  • Loading branch information
jfritschi committed Dec 13, 2015
1 parent 28e4a31 commit 050e63b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/CAS/Client.php
Expand Up @@ -1919,7 +1919,7 @@ public function setCasServerCACert($cert, $validate_cn)
if (gettype($validate_cn) != 'boolean') {
throw new CAS_TypeMismatchException($validate_cn, '$validate_cn', 'boolean');
}
if ( !file_exists($cert) ){
if ( !file_exists($cert) && $this->_requestImplementation instanceof CAS_TestHarness_DummyRequest){
throw new CAS_InvalidArgumentException("Certificate file does not exist");
}
$this->_cas_server_ca_cert = $cert;
Expand Down

0 comments on commit 050e63b

Please sign in to comment.