You are here

class Braintree_HttpTest in Commerce Braintree 7

Hierarchy

Expanded class hierarchy of Braintree_HttpTest

File

braintree_php/tests/integration/HttpTest.php, line 4

View source
class Braintree_HttpTest extends PHPUnit_Framework_TestCase {
  function testProductionSSL() {
    try {
      Braintree_Configuration::environment('production');
      $this
        ->setExpectedException('Braintree_Exception_Authentication');
      Braintree_Http::get('/');
    } catch (Exception $e) {
      Braintree_Configuration::environment('development');
      throw $e;
    }
    Braintree_Configuration::environment('development');
  }
  function testSandboxSSL() {
    try {
      Braintree_Configuration::environment('sandbox');
      $this
        ->setExpectedException('Braintree_Exception_Authentication');
      Braintree_Http::get('/');
    } catch (Exception $e) {
      Braintree_Configuration::environment('development');
      throw $e;
    }
    Braintree_Configuration::environment('development');
  }

}

Members