]> khamidou — GitHub mirrors - arcanist.git/commit
Add support for 'phpunit_binary' config setting
authorEric Stern <eric@wepay.com>
Mon, 26 Aug 2013 16:59:51 +0000 (09:59 -0700)
committerepriestley <git@epriestley.com>
Mon, 26 Aug 2013 16:59:51 +0000 (09:59 -0700)
commita28d4ff3e451714258e49481d7bfaf97ad36ccbe
tree659a3ddb1da56f9527f4a0ef6510a9794025a806
parent65c19ff0c072c9c7abd4580ecdf2e781da3ebe20
Add support for 'phpunit_binary' config setting

Summary:
If present, this will override the default phpunit path. Allows easy
integration of Composer-provided installs of phpunit (ex. set phpunit_binary to
vendor/bin/phpunit). If the path provided doesn't resolve to an executable it
will assume the path is relative to the project root.

fix line length issue

Test Plan:
Added phpunit_binary to .arcconfig in a simple project using Composer with
phpunit/phpunit package as part of require-dev (installed to
$ROOT/vendor/bin/phpunit). Phpunit not otherwise installed on the system. Set
unit.engine to PhpunitTestEngine. Confirmed that 'arc unit' used the specified
binary, both at project root and from subdirectories.

Reviewers: epriestley

CC: aurelijus, Korvin, aran
Differential Revision: https://secure.phabricator.com/D6791
src/unit/engine/PhpunitTestEngine.php