protected function tearDown() { $this->customers->deleteCustomer($this->customerId); $this->coupons->deleteCoupon($this->couponId); $this->plans->deletePlan($this->planId); parent::tearDown(); }
/** * @return \Stripe\Response\Plans\PlanResponse */ protected function createPlan() { return $this->plans->createPlan(new CreatePlanRequest("test_plan" . rand(0, 999999), 350, "usd", "month", "test plan")); }
protected function tearDown() { parent::tearDown(); $this->client->request('DELETE', 'customers/' . $this->customerId); $this->plans->deletePlan($this->planId); }