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 0c1e904 commit c5d0506Copy full SHA for c5d0506
1 file changed
tests/tests/Target/MapperTest.php
@@ -328,6 +328,14 @@ public function testIssue1066(): void
328
);
329
}
330
331
+ public function testLineOfCodeInGlobalScopeDoesNotBelongToCodeUnit(): void
332
+ {
333
+ $file = realpath(__DIR__ . '/../../_files/source_without_ignore.php');
334
+ $mapper = $this->mapper([$file]);
335
+
336
+ $this->assertSame($file . ':2', $mapper->lookup($file, 2));
337
+ }
338
339
/**
340
* @param list<non-empty-string> $files
341
*/
0 commit comments