Laravel 5: PHPUnit and no code coverage driver available

前端 未结 8 649
深忆病人
深忆病人 2020-12-25 09:49

I would like to use PHPUnit to create code coverage reports. I have tried a lot of installation setups found on the web. But nothing seems to work out.

I use the lat

8条回答
  •  执念已碎
    2020-12-25 09:58

    it's worked for me. follow this step :

    1.) install php7.x-dev, (x) is PHP version on your Linux server

    sudo apt-get install php7.x-dev
    

    2.) install Xdebug through PECL on Linux

    sudo pecl install xdebug
    

    3.) add the following php.ini file. (you can insert it on last line)

    zend_extension="/wherever/you/put/it/xdebug.so"
    

提交回复
热议问题