Skip to content

Commit d4146d6

Browse files
committed
Gherkin Loader: strip trailing backslash from namespace
Fixes Codeception#6032
1 parent 7bf12df commit d4146d6

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)