Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | public function replacePlaceholders($text, AfterScenarioTested $event) |
||
29 | { |
||
30 | $map = [ |
||
31 | '%SUITE%' => $event->getSuite()->getName(), |
||
32 | '%FEATURE_FILE_PATH%' => $this->relativizePaths($event->getFeature()->getFile()), |
||
33 | '%SCENARIO_LINE_NUMBER%' => $event->getScenario()->getLine() |
||
34 | ]; |
||
35 | |||
36 | foreach ($map as $key => $value) { |
||
37 | $text = str_replace($key, $value, $text); |
||
38 | } |
||
39 | |||
40 | return $text; |
||
41 | } |
||
42 | |||
59 |