You are here

function Braintree_AddressTest::testGet_givesErrorIfInvalidProperty in Commerce Braintree 7

File

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

Class

Braintree_AddressTest

Code

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