You are here

HttpTest.php in Commerce Braintree 7

File

braintree_php/tests/integration/HttpTest.php
View source
<?php

require_once realpath(dirname(__FILE__)) . '/../TestHelper.php';
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');
  }

}

Classes

Namesort descending Description
Braintree_HttpTest