sebastianbergmann/phpunit — pull request #407 by dzuelke (2011-11-12 12:58:45+00:00)
Title: Fix PHPUnit_Util_PHP::getPhpBinary() to work as documented and change lookup order

First change makes sure $_SERVER["_"] is preferred over @php_bin@, since that likely makes a lot more sense in almost all cases (very useful e.g. when running tests using different PHP versions).

Second change makes sure that this actually works :) Contrary to what the docs say, $_SERVER["_"] was never used if it did not contain the string "phpunit".