Ran into an odd problem where it was using phpunit rather than <div>/vendor/bin/phpunit, even though we could run the tests manually in the repo with ./vendor/bin/phpunit.
The code lives in ~/Projects/PHP Modules/<package-name>. When we moved the package up a level to ~/Projects/<package-name> everything worked perfectly. So it looks like python is having a hard time finding phpunit.xml and/or vendor/bin/phpunit when the current directory contains a space.