You are here

function Braintree_Result_ErrorTest::testCallingNonExsitingFieldReturnsNull in Commerce Braintree 7

File

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

Class

Braintree_Result_ErrorTest

Code

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