37035-vm/vendor/stripe/stripe-php/test/Stripe/AuthenticationErrorTest.php
2025-12-18 10:12:51 +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());
}
}
}