PHPstrom单元测试覆盖率配置和使用
1.安装xdebug
查看 :https://xdebug.org/docs/install
Macs: pecl install xdebug
配置:php.ini
zend_extension=xdebug.so
xdebug.remote_enable=1
xdebug.remote_autostart = 1
xdebug.idekey = PHPSTORM
xdebug.remote_host=localhost
xdebug.remote_handler = dbgp
;默认的9000已经被php-fpm占用了,切记换一个端口
xdebug.remote_port=9001
xdebug.remote_connect_back = 1
xdebug.scream = 0
xdebug.show_local_vars = 1
2.使用


本文详细介绍如何在PHPStorm中配置单元测试覆盖率,包括安装xdebug扩展和在php.ini文件中进行必要设置,如启用远程调试、指定监听端口等,以实现更全面的代码质量检查。
203

被折叠的 条评论
为什么被折叠?



