Posts Tagged "pcov"


Ramblings of yet another developer!
  • Empty or Zero Percent (0%) Code Coverage With PHPUnit and pcov

    Posted on Feb 14, 2024

    I recently updated my PHP version and, since I use Docker, I upgraded the image version to get the newer version. After doing this, my PHPUnit tests stopped reporting coverage. With v8.5 of PHPUnit I saw all the files in the report but every one was returning 0% coverage. I upgraded to 9.6 in an effort to fix the issues, and the report suddenly showed no files at all. So it was crystal clear there was a separate issue!