public function testFindErrorsOnWhitespaceOnlyCustomerId() { $this->setExpectedException('InvalidArgumentException'); Braintree\Address::find(' ', '123'); }
public function testFind_whenNotFound() { $customer = Braintree\Customer::createNoValidate(); $this->setExpectedException('Braintree\\Exception\\NotFound'); Braintree\Address::find($customer->id, 'does-not-exist'); }