From 814b4a8df059142292b22905ad3e79676d2c53f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Ochman?= Date: Tue, 7 Aug 2012 09:47:17 +0200 Subject: [PATCH] Allow relative paths in files_path --- src/Behat/MinkExtension/Context/MinkContext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Behat/MinkExtension/Context/MinkContext.php b/src/Behat/MinkExtension/Context/MinkContext.php index 168b38d..c29de8c 100644 --- a/src/Behat/MinkExtension/Context/MinkContext.php +++ b/src/Behat/MinkExtension/Context/MinkContext.php @@ -178,7 +178,7 @@ class MinkContext extends RawMinkContext implements TranslatedContextInterface $field = $this->fixStepArgument($field); if ($this->getMinkParameter('files_path')) { - $fullPath = rtrim($this->getMinkParameter('files_path'), DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR.$path; + $fullPath = rtrim(realpath($this->getMinkParameter('files_path')), DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR.$path; if (is_file($fullPath)) { $path = $fullPath; }