You are here

class Braintree_Result_ErrorTest in Commerce Braintree 7

Same name in this branch
  1. 7 braintree_php/tests/unit/Result/ErrorTest.php \Braintree_Result_ErrorTest
  2. 7 braintree_php/tests/integration/Result/ErrorTest.php \Braintree_Result_ErrorTest

Hierarchy

Expanded class hierarchy of Braintree_Result_ErrorTest

File

braintree_php/tests/unit/Result/ErrorTest.php, line 4

View source
class Braintree_Result_ErrorTest extends PHPUnit_Framework_TestCase {
  function testCallingNonExsitingFieldReturnsNull() {
    $result = new Braintree_Result_Error(array(
      'errors' => array(),
      'params' => array(),
      'message' => 'briefly describe',
    ));
    $this
      ->assertNull($result->transaction);
  }

}

Members