Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
9 | public function testCreate() |
||
10 | { |
||
11 | $exception = new Exception('Error', -2, array( |
||
12 | 'http_code' => 400, |
||
13 | 'uuid' => '232342342342424', |
||
14 | 'rate_limit' => 100, |
||
15 | 'rate_limit_remaining' => 98, |
||
16 | 'rate_limit_reset' => 123456789 |
||
17 | )); |
||
18 | |||
19 | $this->assertEquals(-2, $exception->getCode()); |
||
20 | $this->assertEquals(400, $exception->getHttpCode()); |
||
21 | $this->assertEquals('232342342342424', $exception->getUuid()); |
||
22 | $this->assertEquals(100, $exception->getRateLimit()); |
||
23 | $this->assertEquals(98, $exception->getRateLimitRemaining()); |
||
24 | $this->assertEquals(123456789, $exception->getRateLimitReset()); |
||
25 | } |
||
26 | } |
||
29 |