Skip to content

Commit

Permalink
Gherkin Loader: strip trailing backslash from namespace
Browse files Browse the repository at this point in the history
Fixes #6032
  • Loading branch information
Naktibalda committed Dec 20, 2020
1 parent 7bf12df commit d4146d6
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 d4146d6

Please sign in to comment.