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.使用