| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function theUserCheckerManagerCallsAllCheckers() |
||
| 32 | { |
||
| 33 | $checker1 = $this->prophesize(UserAuthenticationChecker::class); |
||
| 34 | $checker1->isAuthenticationNeeded(Argument::any(), Argument::any(), Argument::any()) |
||
| 35 | ->shouldBeCalled(); |
||
| 36 | |||
| 37 | $checker2 = $this->prophesize(UserAuthenticationChecker::class); |
||
| 38 | $checker2->isAuthenticationNeeded(Argument::any(), Argument::any(), Argument::any()) |
||
| 39 | ->shouldBeCalled(); |
||
| 40 | |||
| 41 | $authorization = $this->prophesize(AuthorizationRequest::class); |
||
| 42 | |||
| 43 | $manager = new UserAuthenticationCheckerManager(); |
||
| 44 | $manager->add($checker1->reveal()); |
||
| 45 | $manager->add($checker2->reveal()); |
||
| 46 | |||
| 47 | $manager->isAuthenticationNeeded($authorization->reveal()); |
||
| 48 | } |
||
| 49 | } |
||
| 50 |