ErrorTest.php in Commerce Braintree 7
Same filename in this branch
File
braintree_php/tests/unit/Result/ErrorTest.phpView source
<?php
require_once realpath(dirname(__FILE__)) . '/../../TestHelper.php';
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);
}
}
Classes
Name | Description |
---|---|
Braintree_Result_ErrorTest |