| 1 | <?php |
||
| 8 | class FeatureFilePath implements PlaceholderInterface |
||
| 9 | { |
||
| 10 | const KEY = '%FEATURE_FILE_PATH%'; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | private $basePath; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param string $basePath |
||
| 19 | */ |
||
| 20 | public function __construct($basePath) |
||
| 24 | |||
| 25 | public function getKey() |
||
| 29 | |||
| 30 | public function getValue(AfterScenarioTested $event) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Transforms path to relative. |
||
| 37 | * |
||
| 38 | * @param string $path |
||
| 39 | * |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | private function relativizePaths($path) |
||
| 50 | } |
||
| 51 |