Skip to content

Commit 7ab6354

Browse files
committed
fix nl
1 parent 84076d7 commit 7ab6354

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/UsedInstructionResolver.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ public function resolveInstructionsFromFeatureFiles(array $featureFileInfos): ar
2323

2424
foreach ($featureFileInfos as $featureFileInfo) {
2525
$matches = Strings::matchAll(
26-
$featureFileInfo->getContents(),
26+
// newline is needed, as file can end with no \n
27+
$featureFileInfo->getContents() . PHP_EOL,
2728
'#\s+(Given|When|And|Then)\s+(?<instruction>.*?)\n#m',
2829
);
2930

0 commit comments

Comments
 (0)