You are here

function Braintree_CustomerTest::testGet_givesErrorIfInvalidProperty in Commerce Braintree 7

File

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

Class

Braintree_CustomerTest

Code

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