Laravel 5: PHPUnit and no code coverage driver available

前端 未结 8 650
深忆病人
深忆病人 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 10:14

    For windows users:

    1) Download xdebug

    2) Rename the file to _php_xdebug.dll_ and copy the file to the ext folder in your php installation e.g C:\Program Files (x86)\php\ext

    3) Open your php.ini file. For me it’s available at C:\Program Files (x86)\php\php.ini.

    4) Paste the below code at the bottom of the file.

    zend_extension = php_xdebug.dll
    xdebug.remote_enable = 1
    xdebug.remote_handler = dbgp
    xdebug.remote_host = localhost
    xdebug.remote_autostart = 1
    xdebug.remote_port = 9000
    xdebug.show_local_vars = 1
    

提交回复
热议问题