Skip to content

Commit

Permalink
Merge pull request #126 from glennunipro/filter-realpath
Browse files Browse the repository at this point in the history
Use realpath, so the feature receives the cwd prefixed.
  • Loading branch information
everzet committed Aug 30, 2017
2 parents dfbdc53 + fa7a45f commit 3a09cc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Behat/Gherkin/Filter/PathsFilter.php
Expand Up @@ -50,7 +50,7 @@ function ($realpath) {
public function isFeatureMatch(FeatureNode $feature)
{
foreach ($this->filterPaths as $path) {
if (0 === strpos($feature->getFile(), $path)) {
if (0 === strpos(realpath($feature->getFile()), $path)) {
return true;
}
}
Expand Down

0 comments on commit 3a09cc8

Please sign in to comment.