【发布时间】:2021-01-21 19:55:23
【问题描述】:
我只想先为我的项目做phpunit --coverage我得到了这个错误:
PHPUnit 9.5.0 by Sebastian Bergmann and contributors.
Warning: No code coverage driver available
我只是通过php -v检查我的php以确保我有xdebug
PHP 8.0.0 (cli) (built: Nov 30 2020 13:51:52) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.0-dev, Copyright (c) Zend Technologies
with Zend OPcache v8.0.0, Copyright (c), by Zend Technologies
似乎我没有它然后我只是通过pecl install xdebug Homebrew 安装它我在安装结束时收到此错误:
........
Build process completed successfully
Installing '/usr/local/Cellar/php/8.0.0_1/pecl/20200930/xdebug.so'
Warning: mkdir(): File exists in System.php on line 294
Warning: mkdir(): File exists in /usr/local/Cellar/php/8.0.0_1/share/php/pear/System.php on line 294
ERROR: failed to mkdir /usr/local/Cellar/php/8.0.0_1/pecl/20200930
【问题讨论】:
标签: php laravel unit-testing xdebug