DocumentUploadTest.php 434 B

1234567891011121314151617181920
  1. <?php
  2. namespace Test\Unit;
  3. require_once dirname(__DIR__) . '/Setup.php';
  4. use Test\Setup;
  5. use Braintree;
  6. class DocumentUploadTest extends Setup
  7. {
  8. /**
  9. * @throws InvalidArgumentException
  10. */
  11. public function testCreateThrowsExceptionWithBadKeys()
  12. {
  13. $this->setExpectedException('InvalidArgumentException', 'invalid keys: bad_key');
  14. Braintree\DocumentUpload::create(["bad_key" => "value"]);
  15. }
  16. }