1
0
mirror of https://gitlab.com/openlp/website.git synced 2024-12-22 13:02:50 +00:00
website/files/stripe/tests/RateLimitErrorTest.php

23 lines
455 B
PHP
Raw Normal View History

<?php
namespace Stripe;
class RateLimitErrorTest extends TestCase
{
private function rateLimitErrorResponse()
{
return array(
'error' => array(),
);
}
/**
* @expectedException Stripe\Error\RateLimit
*/
public function testRateLimit()
{
$this->mockRequest('GET', '/v1/accounts/acct_DEF', array(), $this->rateLimitErrorResponse(), 429);
Account::retrieve('acct_DEF');
}
}