36716-vm/vendor/stripe/stripe-php/test/Stripe/AuthenticationErrorTest.php
2025-12-07 05:00:42 +00:00

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());
}
}
}