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