| Total Complexity | 5 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class U2fAuthenticationFailureEventTest extends TestCase |
||
| 19 | { |
||
| 20 | private $event; |
||
| 21 | private $user; |
||
| 22 | private $error; |
||
| 23 | |||
| 24 | public function setUp() |
||
| 25 | { |
||
| 26 | $this->user = new U2fUser(); |
||
| 27 | $this->error = new \Exception(); |
||
| 28 | |||
| 29 | $this->event = new U2fAuthenticationFailureEvent($this->user, $this->error, 33); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function testName() |
||
| 33 | { |
||
| 34 | $this->assertEquals('u2f.authentication.failure', U2fAuthenticationFailureEvent::getName()); |
||
| 35 | $this->assertEquals('u2f.authentication.failure', $this->event->getName()); |
||
| 36 | } |
||
| 37 | |||
| 38 | public function testUser() |
||
| 39 | { |
||
| 40 | $this->assertEquals($this->user, $this->event->getUser()); |
||
| 41 | } |
||
| 42 | |||
| 43 | public function testError() |
||
| 44 | { |
||
| 45 | $this->assertEquals($this->error, $this->event->getError()); |
||
| 46 | } |
||
| 47 | |||
| 48 | public function testFailureCounter() |
||
| 51 | } |
||
| 52 | } |
||
| 53 |