We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84076d7 commit 7ab6354Copy full SHA for 7ab6354
src/UsedInstructionResolver.php
@@ -23,7 +23,8 @@ public function resolveInstructionsFromFeatureFiles(array $featureFileInfos): ar
23
24
foreach ($featureFileInfos as $featureFileInfo) {
25
$matches = Strings::matchAll(
26
- $featureFileInfo->getContents(),
+ // newline is needed, as file can end with no \n
27
+ $featureFileInfo->getContents() . PHP_EOL,
28
'#\s+(Given|When|And|Then)\s+(?<instruction>.*?)\n#m',
29
);
30
0 commit comments