sebastianbergmann / phpcov

TextUI frontend for php-code-coverage
BSD 3-Clause "New" or "Revised" License
223 stars 58 forks source link

XML reports with zero-fill coverage #79

Closed zhaoxd07 closed 6 years ago

zhaoxd07 commented 6 years ago

Hi, I use the phpcov to get a xml report, and I got a zero-fill coverage as below,

image

My version:

php --version

PHP 7.1.6 (cli) (built: May 16 2018 15:17:43) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies with Xdebug v2.7.0alpha2-dev, Copyright (c) 2002-2018, by Derick Rethans

phpunit --version

PHPUnit 4.8.9 by Sebastian Bergmann and contributors.

phpcov --version

phpcov 2.0.0 by Sebastian Bergmann.

MyTestData.txt

sebastianbergmann commented 6 years ago

PHPUnit 4.8 is no longer supported. Please open a new ticket in case the problem still exists in PHPUnit 6.5 or PHPUnit 7.2.

zhaoxd07 commented 6 years ago

phpunit 6.5.0 & phpcov 4.0.5 is working. Thank you~