mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
23 lines
455 B
PHP
23 lines
455 B
PHP
|
|
<?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');
|
||
|
|
}
|
||
|
|
}
|