I can't seem to get Phing to use my PHPUnit installed through composer (in a project local bin/
directory). As last resort if I tell Phing to use my phpunit executable as-if it a PHAR file using <phpunit pharlocation="${basedir}/bin/phpunit" />
But that also fails with:
Project > phpunit:
#!/usr/bin/env php
PHPUnit 4.8.21 by Sebastian Bergmann and contributors.
unrecognized option -- f
I'd rather not tamper with my PATH because other developers should be able to run the phing phpunit-target without any big hassle. Also a globally installed phpunit is not something I'd want, because I do not want version differences between developers.
Did you already tried the Phing Autoload Task ?
https://www.phing.info/docs/guide/trunk/AutoloaderTask.html
I'm using it this way: