Skip to content

Commit

Permalink
Allow for the basename of the file to be matched against to allow for…
Browse files Browse the repository at this point in the history
… Path, Line and LineRange filters to work
  • Loading branch information
generalconsensus committed Jun 28, 2017
1 parent 5c14cff commit b3686f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Behat/Gherkin/Filter/PathsFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ public function isFeatureMatch(FeatureNode $feature)
if (0 === strpos($feature->getFile(), $path)) {
return true;
}
if (is_file($path . basename($feature->getFile()))) {
return true;
}
}

return false;
Expand Down

0 comments on commit b3686f7

Please sign in to comment.