function testServerName() { Braintree_Configuration::environment('development'); $sn = Braintree_Configuration::serverName(); $this->assertEquals('localhost', $sn); Braintree_Configuration::environment('sandbox'); $sn = Braintree_Configuration::serverName(); $this->assertEquals('sandbox.braintreegateway.com', $sn); Braintree_Configuration::environment('production'); $sn = Braintree_Configuration::serverName(); $this->assertEquals('www.braintreegateway.com', $sn); Braintree_Configuration::reset(); }