| Conditions | 3 |
| Paths | 3 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | 6 | public function resolve(AbstractTestBagInterface $testBag, RouteContextInterface $routeContext) |
|
| 41 | { |
||
| 42 | 6 | if ($testBag instanceof TestBagInterface) { |
|
| 43 | 5 | return $testBag->getTests(); |
|
| 44 | 1 | } elseif ($testBag instanceof RequestDependentTestBagInterface) { |
|
| 45 | 1 | $requestContext = $this->requestContextFactory->createContext($routeContext); |
|
| 46 | |||
| 47 | 1 | return $testBag->getTests($requestContext); |
|
| 48 | } |
||
| 53 |