I want to add acceptance tests to a command line application written in PHP. The PHPUnit tests are using proc_open
to run the application, as suggested in
PHP StdErr after Exec(), which works fine.
Nevertheless, the code coverage is not collected. A report is produced, showing 100% coverage for interfaces and empty classes, and 0% for everything else.
How can I get the code coverage for the CLI application with PHPUnit?