1. pmj7
  2. MAMP - Troubleshooting
  3. Thursday, 14 May 2020

I have the latest MAMP Pro, which has PHP up to version 7.4.2.  I have selected 7.3.9, and I have changed my Mac OS path so that the command line uses MAMP's PHP.  I have enabled XDebug within MAMP Pro, but when trying to use PHPUnit with code coverage, it says that there is no code coverage driver.

$PATH

...:/Applications/MAMP/bin/php/php7.3.9/bin:...

phpunit --coverage-text

PHPUnit 9.1.4 by Sebastian Bergmann and contributors.
Runtime:       PHP 7.3.9
Configuration: /Users/xyz/Sites/testsite/phpunit.xml
Error:         No code coverage driver is available

 

php -v

PHP 7.3.9 (cli) (built: Feb 17 2020 12:46:14) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.9, Copyright (c) 1998-2018 Zend Technologies
(no mention of XDebug here)

php -m

[PHP Modules]
bcmath
...
(XDebug not listed)

 

I tried adding this to the MAMP Pro php.ini for 7.3.9 to no effect:
xdebug.coverage_enable=true
xdebug.profiler_enable=1
xdebug.profiler_output_dir="/Applications/MAMP/tmp"

 

What is the trick?

Thanks.



Accepted Answer Pending Moderation
0
Votes
Undo

Sorry, I'm not sure. but maybe someone else can help. Bump

  1. more than a month ago
  2. MAMP - Troubleshooting
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!