如何使用 PHPUnit 运行 Xdebug 加速测试

How can I speed up tests with PHPUnit running with Xdebug

我正在 运行 测试 PHPUnit 使用 Xdebug 生成覆盖率,但它非常慢。

我尝试使用 PHPdbg,但这会导致内存错误。

有人告诉我可以创建一个过滤器文件,这应该会有所帮助。谁能给我解释一下那是怎么回事。

documentation for PHPUnit has information on speeding up code coverage with Xdebug. For more background information I recommend this article.

也就是说,我建议查看 PCOV,以便更快地收集 PHP 和 PHPUnit 的代码覆盖率数据。