Can't do the multi coverage against the same script
Status: Beta
Brought to you by:
pnimish
For examlpe, if there are two test cases. The first one can cover 1 to 50 lines, the other one covers 51-100 lines. But the result only count in the first one which cover 50 lines. I find this issue occurs on remote web testing. Maybe others also have the same issue.
The problem is caused by the flaw of array_merge_recursive function in RemoteCoverageRecorder.php, which would wrongly collect the coverage data arrays after the first caculation. I modified it and it should ok now.
Add a function array_merge_conversion instead of the original array_merge_recursive