| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | 15 | public function resolve(TestInterface $test, RouteContextInterface $routeContext) |
|
| 47 | { |
||
| 48 | 15 | foreach ($this->resolvers as $resolver) { |
|
| 49 | 15 | if ($resolver->supports($test)) { |
|
| 50 | 15 | return $resolver->resolve($test, $routeContext); |
|
| 51 | } |
||
| 52 | } |
||
| 53 | |||
| 54 | 1 | throw new RuntimeException(sprintf('No resolver exists for test instance of "%s".', get_class($test))); |
|
| 55 | } |
||
| 57 |