0

你们如何使用 Stripe 订阅创建测试用户以使用 PHPUnit 进行测试?最好不要碰到 Stripe API。任何包装提示或一般建议将不胜感激!

4

1 回答 1

1

Test them as everything else:

  1. Create mocks of their API.
  2. There is an example of testing API Client TDD with Mocked Responses.
  3. You can even discover how does Stripe test itself
于 2016-03-16T18:16:25.157 回答