Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
32 | public function testPasswordResetRequestGetsHandled() |
||
33 | { |
||
34 | $dispatcherMock = $this->getMockBuilder(EventDispatcherInterface::class) |
||
35 | ->disableOriginalConstructor() |
||
36 | ->getMock(); |
||
37 | $dispatcherMock->method('addListener'); |
||
38 | |||
39 | $handler = new RequestPasswordResetHandler( |
||
40 | $this->userRepositoryCollection, |
||
41 | $dispatcherMock |
||
42 | ); |
||
43 | |||
44 | $user = $this->userRepository->findByUsername('wouter'); |
||
45 | $event = new RequestPasswordReset($user); |
||
46 | |||
47 | $this->assertNull($handler->handle($event)); |
||
48 | } |
||
49 | } |
||
50 |
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..