mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-07 10:08:27 +01:00
17 lines
329 B
PHP
17 lines
329 B
PHP
<?php
|
|
|
|
namespace Stripe;
|
|
|
|
class AuthenticationErrorTest extends TestCase
|
|
{
|
|
public function testInvalidCredentials()
|
|
{
|
|
Stripe::setApiKey('invalid');
|
|
try {
|
|
Customer::create();
|
|
} catch (Error\Authentication $e) {
|
|
$this->assertSame(401, $e->getHttpStatus());
|
|
}
|
|
}
|
|
}
|