Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
16 | public function testClass() |
||
17 | { |
||
18 | $exception = new InvalidGrantException( |
||
19 | $loginAttempt = $this->prophesize(LoginAttempt::class)->reveal(), |
||
20 | $message = 'Fake exception', |
||
21 | $code = 666, |
||
22 | $previous = new \Exception() |
||
23 | ); |
||
24 | |||
25 | $this->assertSame($loginAttempt, $exception->getLoginAttempt()); |
||
26 | $this->assertEquals($message, $exception->getMessage()); |
||
27 | $this->assertEquals($code, $exception->getCode()); |
||
28 | $this->assertSame($previous, $exception->getPrevious()); |
||
29 | } |
||
30 | } |
||
31 |