Skip to content

Commit 9ffa0eb

Browse files
committed
fix test
1 parent 6708c78 commit 9ffa0eb

File tree

1 file changed

+45
-43
lines changed

1 file changed

+45
-43
lines changed

tests/tests/Data/RawCodeCoverageDataTest.php

Lines changed: 45 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -333,52 +333,53 @@ public function testHeavyIndentationIsHandledCorrectly(): void
333333

334334
$this->assertEquals(
335335
[
336-
9,
337336
14,
338-
// line 17 is unstable - not in xdebug output if script is cached by opcache
339-
20,
340-
// line 23 is unstable - https://github.com/sebastianbergmann/php-code-coverage/issues/889
341-
27,
342-
29,
343-
30,
337+
19,
338+
// line 22 is unstable - not in xdebug output if script is cached by opcache
339+
25,
340+
// line 28 is unstable - const coverage depends on autoload order - https://github.com/sebastianbergmann/php-code-coverage/issues/889
341+
32,
342+
34,
344343
35,
345-
36,
346-
39,
347-
42,
348-
51,
349-
57,
350-
59,
351-
65,
352-
71,
353-
82,
354-
90,
355-
91,
356-
92,
357-
94,
344+
40,
345+
41,
346+
44,
347+
47,
348+
56,
349+
62,
350+
64,
351+
70,
352+
76,
353+
87,
354+
95,
358355
96,
359-
108,
360-
// array destruct element, should be present 109,
361-
112,
362-
122,
363-
131,
364-
133,
365-
135,
366-
137,
367-
139,
368-
141,
369-
143,
370-
145,
371-
147,
372-
149,
373-
171,
356+
97,
357+
99,
358+
101,
359+
// line 108 is unstable - variable has no coverage if it holds const expr - https://github.com/sebastianbergmann/php-code-coverage/issues/953
360+
113,
361+
// array destruct element, should be present 114,
362+
117,
363+
127,
364+
136,
365+
138,
366+
140,
367+
142,
368+
144,
369+
146,
370+
148,
371+
150,
372+
152,
373+
154,
374374
176,
375-
180,
376-
183,
377-
187,
378-
191,
379-
197,
380-
201,
381-
207,
375+
181,
376+
185,
377+
188,
378+
192,
379+
196,
380+
202,
381+
206,
382+
212,
382383
],
383384
array_keys(RawCodeCoverageData::fromUncoveredFile($file, new ParsingFileAnalyser(true, true))->lineCoverage()[$file])
384385
);
@@ -499,7 +500,8 @@ public function testReturnStatementWithConstantExprOnlyReturnTheLineOfLast(): vo
499500
456,
500501
466,
501502
478,
502-
527,
503+
489,
504+
503,
503505
],
504506
array_keys(RawCodeCoverageData::fromUncoveredFile($file, new ParsingFileAnalyser(true, true))->lineCoverage()[$file])
505507
);

0 commit comments

Comments
 (0)