You are here

function Braintree_CreditCardTest::testGet_givesErrorIfInvalidProperty in Commerce Braintree 7

File

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

Class

Braintree_CreditCardTest

Code

function testGet_givesErrorIfInvalidProperty() {
  $this
    ->setExpectedException('PHPUnit_Framework_Error', 'Undefined property on Braintree_CreditCard: foo');
  $cc = Braintree_CreditCard::factory(array());
  $cc->foo;
}