@@ -144,9 +144,10 @@ public function getReport(): Directory
144
144
*/
145
145
public function clear (): void
146
146
{
147
- $ this ->currentId = null ;
148
- $ this ->data = new ProcessedCodeCoverageData ;
149
- $ this ->tests = [];
147
+ $ this ->currentId = null ;
148
+ $ this ->data = new ProcessedCodeCoverageData ;
149
+ $ this ->tests = [];
150
+ $ this ->cachedReport = null ;
150
151
}
151
152
152
153
/**
@@ -211,6 +212,8 @@ public function start($id, bool $clear = false): void
211
212
$ this ->currentId = $ id ;
212
213
213
214
$ this ->driver ->start ();
215
+
216
+ $ this ->cachedReport = null ;
214
217
}
215
218
216
219
/**
@@ -229,7 +232,8 @@ public function stop(bool $append = true, $linesToBeCovered = [], array $linesTo
229
232
$ data = $ this ->driver ->stop ();
230
233
$ this ->append ($ data , null , $ append , $ linesToBeCovered , $ linesToBeUsed );
231
234
232
- $ this ->currentId = null ;
235
+ $ this ->currentId = null ;
236
+ $ this ->cachedReport = null ;
233
237
234
238
return $ data ;
235
239
}
@@ -254,6 +258,8 @@ public function append(RawCodeCoverageData $rawData, $id = null, bool $append =
254
258
throw new TestIdMissingException ;
255
259
}
256
260
261
+ $ this ->cachedReport = null ;
262
+
257
263
$ this ->applyFilter ($ rawData );
258
264
259
265
$ this ->applyExecutableLinesFilter ($ rawData );
@@ -321,6 +327,8 @@ public function merge(self $that): void
321
327
$ this ->data ->merge ($ that ->data );
322
328
323
329
$ this ->tests = array_merge ($ this ->tests , $ that ->getTests ());
330
+
331
+ $ this ->cachedReport = null ;
324
332
}
325
333
326
334
public function enableCheckForUnintentionallyCoveredCode (): void
0 commit comments