facebook / facebook/hhvm

Reported code coverage differs from what PHP/Xdebug reports

未关闭
#1,589 5 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
php5 incompatibility
主要语言
C++
星标
18.7k
派生
3.1k
平均合并
1 小时 47 分钟
30 天内合并 PR
2

描述

While working on code coverage support for PHPUnit on HHVM, I discovered that the reported code coverage differs from what Xdebug reports. This will probably not be the only difference between HHVM's and Xdebug's code coverage but it's the first I found.

To reproduce, simply run PHPUnit's `master` on the test suite of https://github.com/sebastianbergmann/money (`phpunit -c build`).

PHP and Xdebug report 100% code coverage:

![php](https://f.cloud.github.com/assets/25218/1946443/4cf8b274-8006-11e3-8a3c-3faa2bbebb38.png)

HHVM reports less than 100% code coverage:

![hhvm-1](https://f.cloud.github.com/assets/25218/1946444/5cd349f2-8006-11e3-8307-bbe68ba31759.png)

![hhvm-2](https://f.cloud.github.com/assets/25218/1946445/68ed38f6-8006-11e3-8638-a77bcbb9ca4d.png)

![hhvm-3](https://f.cloud.github.com/assets/25218/1946446/6eb5409e-8006-11e3-9ece-d70ce8badfef.png)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。