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.
PHPUnit 9.1.4 by Sebastian Bergmann and contributors.
Runtime: PHP 7.3.9
Error: No code coverage driver is available
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)
(XDebug not listed)
I tried adding this to the MAMP Pro php.ini for 7.3.9 to no effect:
What is the trick?