I\'m starting to write PHPUnit tests and I\'d like the tests to be run from developers machines as well as from our servers. Developers machines are set up differently than
All the solutions here are valid for the question, but there is yet another way that might be simpler for some situations.
Phing will take arguments passed in the form -Dargument=value
So using
phing -Dtest=MyTest.class.php
You can then use phing conditionals to handle these arguments: