Example #1
0
 public function testInstantiation()
 {
     $exception = new TooManyRequests(9, [1, 2, 3]);
     $this->assertEquals('Too Many Requests', $exception->getMessage());
     $this->assertEquals(429, $exception->getStatusCode());
     $this->assertEquals(9, $exception->getCode());
     $this->assertEquals([1, 2, 3], $exception->getDetails());
 }