Sorry for the delay and thanks for creating the script!
It’s running but errors out in PHPStorm:
/Users/bhogg/flywheel/ecn/flywheel-ssh.sh -d include_path=./:/usr/local/lib/php:/root/.composer/vendor/phpunit /private/var/folders/rp/_7tq3b5s7lx_zgn6tt1jtxl00000gn/T/ide-phpunit.php --configuration /Users/bhogg/flywheel/ecn/app/public/wp-content/plugins/event-calendar-newsletter/phpunit.xml
Testing started at 3:15 PM …
Fatal error: Class ‘PHPUnit_TextUI_ResultPrinter’ not found in /private/var/folders/rp/_7tq3b5s7lx_zgn6tt1jtxl00000gn/T/ide-phpunit.php on line 253
Call Stack:
0.0005 443608 1. {main}() /private/var/folders/rp/_7tq3b5s7lx_zgn6tt1jtxl00000gn/T/ide-phpunit.php:0
Process finished with exit code 255
I’ve tried playing around the the PHPUnit options (the second … in the “Use alternative configuration file” line), and am using the ID found in /Users/bhogg/Library/Application\ Support/Local\ by\ Flywheel/ssh-entry/rJ8FNfZpx.sh (file run when you SSH in via the right-click in Local by Flywheel) near the end:
exec -it 58e3e471c34fa35059d9c8bf9f9eed72634cdbd8de8f3c083df04ead59a20e68 /bin/bash
(so 58e3e471c34fa35059d9c8bf9f9eed72634cdbd8de8f3c083df04ead59a20e68 is what I’m assuming is the docker container ID).
If you SSH in and go into /app/public/wp-content/plugins/event-calendar-newsletter and run /root/.composer/vendor/bin/phpunit the tests run as expected.
Will keep playing around and seeing if I can get it working, but any thoughts welcome!