1 | <?php |
||
7 | class PlaceholderReplacer |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | private $basePath; |
||
13 | |||
14 | /** |
||
15 | * @param string $basePath |
||
16 | */ |
||
17 | public function __construct($basePath) |
||
21 | |||
22 | /** |
||
23 | * @param string $text |
||
24 | * @param AfterScenarioTested $event |
||
25 | * |
||
26 | * @return string |
||
27 | */ |
||
28 | public function replacePlaceholders($text, AfterScenarioTested $event) |
||
42 | |||
43 | /** |
||
44 | * Transforms path to relative. |
||
45 | * |
||
46 | * @param string $path |
||
47 | * |
||
48 | * @return string |
||
49 | */ |
||
50 | private function relativizePaths($path) |
||
58 | } |
||
59 |