15 lines
301 B
PHP
15 lines
301 B
PHP
<?php
|
|
|
|
class Stripe_AuthenticationErrorTest extends UnitTestCase
|
|
{
|
|
public function testInvalidCredentials()
|
|
{
|
|
Stripe::setApiKey('invalid');
|
|
try {
|
|
Stripe_Customer::create();
|
|
} catch (Stripe_AuthenticationError $e) {
|
|
$this->assertEqual(401, $e->getHttpStatus());
|
|
}
|
|
}
|
|
}
|