You are here

function Braintree_HttpTest::testProductionSSL in Commerce Braintree 7

File

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

Class

Braintree_HttpTest

Code

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