Skip to content

Commit

Permalink
apereo#172 fix CA file test
Browse files Browse the repository at this point in the history
  • Loading branch information
jfritschi committed Dec 13, 2015
1 parent 050e63b commit ff21f28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/CAS/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -1919,8 +1919,8 @@ public function setCasServerCACert($cert, $validate_cn)
if (gettype($validate_cn) != 'boolean') {
throw new CAS_TypeMismatchException($validate_cn, '$validate_cn', 'boolean');
}
if ( !file_exists($cert) && $this->_requestImplementation instanceof CAS_TestHarness_DummyRequest){
throw new CAS_InvalidArgumentException("Certificate file does not exist");
if ( !file_exists($cert) && $this->_requestImplementation !== 'CAS_TestHarness_DummyRequest'){
throw new CAS_InvalidArgumentException("Certificate file does not exist " . $this->_requestImplementation);
}
$this->_cas_server_ca_cert = $cert;
$this->_cas_server_cn_validate = $validate_cn;
Expand Down

0 comments on commit ff21f28

Please sign in to comment.