public function testDelete_deletesThePaymentMethod() { $customer = Braintree\Customer::createNoValidate(array()); $creditCard = Braintree\CreditCard::createNoValidate(array('customerId' => $customer->id, 'number' => '5105105105105100', 'expirationDate' => '05/12')); Braintree\CreditCard::find($creditCard->token); Braintree\CreditCard::delete($creditCard->token); $this->setExpectedException('Braintree\\Exception\\NotFound'); Braintree\CreditCard::find($creditCard->token); }