You are here

function Braintree_UtilTest::testVerifyKeys_withThreeLevels in Commerce Braintree 7

File

braintree_php/tests/unit/UtilTest.php, line 87

Class

Braintree_UtilTest

Code

function testVerifyKeys_withThreeLevels() {
  $signature = array(
    'firstName',
    array(
      'creditCard' => array(
        'number',
        array(
          'billingAddress' => array(
            'streetAddress',
          ),
        ),
      ),
    ),
  );
  $data = array(
    'firstName' => 'Dan',
    'creditCard' => array(
      'number' => '5100',
      'billingAddress' => array(
        'streetAddress' => '1 E Main St',
      ),
    ),
  );
  Braintree_Util::verifyKeys($signature, $data);
}