SubscriptionTest.php 506 B

12345678910111213141516171819202122
  1. <?php
  2. namespace Test\Unit;
  3. require_once dirname(__DIR__) . '/Setup.php';
  4. use Test\Setup;
  5. use Braintree;
  6. class SubscriptionTest extends Setup
  7. {
  8. public function testErrorsOnFindWithBlankArgument()
  9. {
  10. $this->setExpectedException('InvalidArgumentException');
  11. Braintree\Subscription::find('');
  12. }
  13. public function testErrorsOnFindWithWhitespaceArgument()
  14. {
  15. $this->setExpectedException('InvalidArgumentException');
  16. Braintree\Subscription::find('\t');
  17. }
  18. }