| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 33 | public function testPasswordResetRequestGetsHandled() |
||
| 34 | { |
||
| 35 | $listener = $this->getMockBuilder(OnPasswordResetTokenCreated::class) |
||
| 36 | ->disableOriginalConstructor() |
||
| 37 | ->getMock(); |
||
| 38 | |||
| 39 | $dispatcherMock = $this->getMockBuilder(EventDispatcherInterface::class) |
||
| 40 | ->disableOriginalConstructor() |
||
| 41 | ->getMock(); |
||
| 42 | $dispatcherMock->method('addListener'); |
||
| 43 | |||
| 44 | $handler = new PasswordResetRequestHandler( |
||
| 45 | $this->userRepositoryCollection, |
||
| 46 | $dispatcherMock, |
||
| 47 | $listener |
||
| 48 | ); |
||
| 49 | |||
| 50 | $user = $this->userRepository->findByUsername('wouter'); |
||
| 51 | $event = new RequestPasswordReset($user); |
||
| 52 | |||
| 53 | $this->assertNull($handler->handle($event)); |
||
| 54 | } |
||
| 55 | } |
||
| 56 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..