Skip to content

Commit 24736ba

Browse files
authored
Merge pull request Codeception#6057 from Codeception/gherkin-fix-namespaced-contexts
Gherkin Loader: Strip trailing backslash from namespace
2 parents 7bf12df + d4146d6 commit 24736ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Codeception/Test/Loader/Gherkin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ protected function fetchGherkinSteps()
6868

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

0 commit comments

Comments
 (0)