mirror of
https://gitlab.com/openlp/website.git
synced 2024-12-22 04:52:49 +00: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());
|
|
}
|
|
}
|
|
}
|