You are here

function Braintree_CreditCardTest::testCreate_throwsIfInvalidKey in Commerce Braintree 7

File

braintree_php/tests/unit/CreditCardTest.php, line 13

Class

Braintree_CreditCardTest

Code

function testCreate_throwsIfInvalidKey() {
  $this
    ->setExpectedException('InvalidArgumentException', 'invalid keys: invalidKey');
  Braintree_CreditCard::create(array(
    'invalidKey' => 'foo',
  ));
}