You are here

function Braintree_SubscriptionTest::testCreate_doesNotAcceptBadAttributes in Commerce Braintree 7

File

braintree_php/tests/integration/SubscriptionTest.php, line 7

Class

Braintree_SubscriptionTest

Code

function testCreate_doesNotAcceptBadAttributes() {
  $this
    ->setExpectedException('InvalidArgumentException', 'invalid keys: bad');
  $result = Braintree_Subscription::create(array(
    'bad' => 'value',
  ));
}