Skip to content

Commit f0e43a9

Browse files
committed
test empty subarray
1 parent 9ffa0eb commit f0e43a9

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

tests/_files/source_with_multiline_constant_return.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,9 @@ public function complexArrayWithNotConstInTheMiddle(): array
430430
1,
431431
],
432432
],
433+
[
434+
// empty array with comment
435+
],
433436
[
434437
phpversion(),
435438
1,
@@ -496,6 +499,7 @@ public function unaryMinusNowdoc(): float
496499
function
497500
emptyMethod
498501
(
502+
// empty method with comment
499503
)
500504
:
501505
void

tests/tests/Data/RawCodeCoverageDataTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -494,14 +494,14 @@ public function testReturnStatementWithConstantExprOnlyReturnTheLineOfLast(): vo
494494
416,
495495
423, // should be 424 as reported by xdebug
496496
425,
497-
434,
498-
439,
499-
441,
500-
456,
501-
466,
502-
478,
503-
489,
504-
503,
497+
437,
498+
442,
499+
444,
500+
459,
501+
469,
502+
481,
503+
492,
504+
507,
505505
],
506506
array_keys(RawCodeCoverageData::fromUncoveredFile($file, new ParsingFileAnalyser(true, true))->lineCoverage()[$file])
507507
);

0 commit comments

Comments
 (0)