| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function testResolve() |
||
| 29 | { |
||
| 30 | $this |
||
| 31 | ->given($resolver = new MethodWithObjectNameResolver()) |
||
| 32 | ->when($result = $resolver->resolve(LoginUserCommand::class)) |
||
| 33 | ->then() |
||
| 34 | ->string($result) |
||
| 35 | ->isEqualTo('loginUserCommand') |
||
| 36 | ; |
||
| 37 | |||
| 38 | $this |
||
| 39 | ->given($resolver = new MethodWithObjectNameResolver()) |
||
| 40 | ->when($result = $resolver->resolve(PublishedPostsQuery::class)) |
||
| 41 | ->then() |
||
| 42 | ->string($result) |
||
| 43 | ->isEqualTo('publishedPostsQuery') |
||
| 44 | ; |
||
| 45 | } |
||
| 46 | } |
||
| 47 |