public static function factory($attributes) { $instance = new Customer(); $instance->_initialize($attributes); return $instance; }
public function testGet_givesErrorIfInvalidProperty() { $this->setExpectedException('PHPUnit_Framework_Error', 'Undefined property on Braintree\\Customer: foo'); $c = Braintree\Customer::factory([]); $c->foo; }