<?php

namespace Stripe;

class RateLimitErrorTest extends TestCase
{
    private function rateLimitErrorResponse()
    {
        return array(
            'error' => array(),
        );
    }

    public function testRateLimit()
    {
        try {
            $this->mockRequest('GET', '/v1/accounts/acct_DEF', array(), $this->rateLimitErrorResponse(), 429);
            Account::retrieve('acct_DEF');
            $this->fail('Did not raise an error.');
        } catch (Error\RateLimit $e) {
            $this->assertSame(429, $e->getHttpStatus());
        }
    }
}

<?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');
    }
}

Clean up style for rate limit test
Clean up style for rate limit test

CC @jxu577
