Skip to content

Commit

Permalink
Merge pull request #6057 from Codeception/gherkin-fix-namespaced-cont…
Browse files Browse the repository at this point in the history
…exts

Gherkin Loader: Strip trailing backslash from namespace
  • Loading branch information
Naktibalda committed Dec 20, 2020
2 parents 7bf12df + d4146d6 commit 24736ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Codeception/Test/Loader/Gherkin.php
Expand Up @@ -68,7 +68,7 @@ protected function fetchGherkinSteps()

if (empty($this->steps) && empty($contexts['default']) && $this->settings['actor']) { // if no context is set, actor to be a context
$actorContext = $this->settings['namespace']
? rtrim($this->settings['namespace'] . '\\' . $this->settings['actor'], '\\')
? rtrim($this->settings['namespace'], '\\') . '\\' . rtrim($this->settings['actor'], '\\')
: $this->settings['actor'];
if ($actorContext) {
$contexts['default'][] = $actorContext;
Expand Down

0 comments on commit 24736ba

Please sign in to comment.