Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function testResolve() |
||
28 | { |
||
29 | $this |
||
30 | ->given($resolver = new FromCommandNamedResolver()) |
||
31 | ->when($result = $resolver->resolve(new LogoutUserCommand('[email protected]'))) |
||
32 | ->then() |
||
33 | ->string($result) |
||
34 | ->isEqualTo('logout_user') |
||
35 | ; |
||
36 | |||
37 | $this |
||
38 | ->given($resolver = new FromCommandNamedResolver()) |
||
39 | ->then() |
||
40 | ->exception(function () use ($resolver) { |
||
41 | $resolver->resolve(new LoginUserCommand('[email protected]', 'plainpassword')); |
||
42 | }) |
||
43 | ->isInstanceOf(\InvalidArgumentException::class) |
||
44 | ; |
||
45 | } |
||
46 | } |
||
47 |