Skip to content

Commit 14d0101

Browse files
committed
wip
1 parent e5bb3a9 commit 14d0101

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

scoper.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@
1212
// see https://github.com/humbug/php-scoper
1313
return [
1414
'prefix' => 'Behastan' . $timestamp,
15-
// unprefix "Behat\Step" namespace
16-
'exclude-namespaces' => ['#^Rector\\\\Behastan#', '#^Webmozart\\\\#', '#^Behat\\\\Step#'],
15+
'exclude-namespaces' => ['#^Rector\\\\Behastan#', '#^Webmozart\\\\#'],
16+
'patches' => [
17+
// unprefix "Behat\Step" string names
18+
function (string $filePath, string $prefix, string $contents): string {
19+
return str_replace(
20+
$prefix . '\\Behat\\Step',
21+
'Behat\\Step',
22+
$contents
23+
);
24+
},
25+
],
1726
];

0 commit comments

Comments
 (0)