braintree/braintree_php — Issue #5: Testing network failure causes SSL exception
Author: zombor
Created: 2011-11-11 16:44:51+00:00
State: open

I'm trying to test cases where the braintree gateway is unavailable (host down, dns failure, etc), and I get a Braintree_Exception_SSLCertificate exception because of:

https://github.com/braintree/braintree_php/blob/master/lib/Braintree/Http.php#L94

It seems like it should be testing if $result is empty, and throw a different kind of exception.