| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | 9 | public function dispatch(Scenario $scenario, WebDriver $driver): array |
|
| 22 | { |
||
| 23 | 9 | $start = microtime(true); |
|
| 24 | |||
| 25 | 9 | call_user_func($scenario->getCallback(), $scenario->pipeline()); |
|
| 26 | 9 | $tasks = $scenario->pipeline()->process($driver); |
|
| 27 | |||
| 28 | return [ |
||
| 29 | 9 | 'name' => $scenario->getName(), |
|
| 30 | 9 | 'tasks' => $tasks, |
|
| 31 | 9 | 'duration' => round(microtime(true) - $start, 4) |
|
| 32 | ]; |
||
| 35 |