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